Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,7 +0,0 @@
|
|||
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
|
||||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
|
||||
procedure String_Multiplication is
|
||||
begin
|
||||
Put_Line (5 * "ha");
|
||||
end String_Multiplication;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#include <String.au3>
|
||||
|
||||
ConsoleWrite(_StringRepeat("ha", 5) & @CRLF)
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. REPEAT-PROGRAM.
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
77 HAHA PIC A(10).
|
||||
PROCEDURE DIVISION.
|
||||
MOVE ALL 'ha' TO HAHA.
|
||||
DISPLAY HAHA.
|
||||
STOP RUN.
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
func$ rep s$ n .
|
||||
for i to n
|
||||
r$ &= s$
|
||||
.
|
||||
for i to n : r$ &= s$
|
||||
return r$
|
||||
.
|
||||
print rep "ha" 5
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import system'routines;
|
|||
import extensions;
|
||||
import extensions'text;
|
||||
|
||||
public program()
|
||||
public Program()
|
||||
{
|
||||
var s := new Range(0, 5).selectBy::(x => "ha").summarize(new StringWriter())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
(apply 'concat (make-list 5 "ha"))
|
||||
|
|
@ -1 +0,0 @@
|
|||
(make-string 5 ?x)
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
(require 'cl-lib)
|
||||
(cl-loop repeat 5 concat "ha")
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
sequence s = ""
|
||||
for i = 1 to 5 do s &= "ha" end for
|
||||
puts(1,s)
|
||||
|
||||
hahahahaha
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
sequence s = repeat('*',5)
|
||||
|
||||
*****
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
include std/console.e -- for display
|
||||
include std/sequence.e -- for repeat_pattern
|
||||
sequence s = repeat_pattern("ha",5)
|
||||
sequence n = repeat_pattern({1,2,3},5)
|
||||
display(s)
|
||||
display(n)
|
||||
|
||||
hahahahaha
|
||||
{1,2,3,1,2,3,1,2,3,1,2,3,1,2,3}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
include std/console.e -- for display
|
||||
include std/sequence.e -- for flatten
|
||||
sequence s = flatten(repeat("ha",5))
|
||||
display(s)
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"ha",
|
||||
"ha",
|
||||
"ha",
|
||||
"ha",
|
||||
"ha"
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
"ha" * 5 # ==> "hahahahaha"
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
FUNCTION StringRepeat$ (s$, n)
|
||||
cad$ = ""
|
||||
FOR i = 1 TO n
|
||||
cad$ = cad$ + s$
|
||||
NEXT i
|
||||
StringRepeat$ = cad$
|
||||
END FUNCTION
|
||||
|
||||
PRINT StringRepeat$("rosetta", 1)
|
||||
PRINT StringRepeat$("ha", 5)
|
||||
PRINT StringRepeat$("*", 5)
|
||||
END
|
||||
|
|
@ -1 +0,0 @@
|
|||
head insert/dup "" "ha" 5
|
||||
|
|
@ -1 +0,0 @@
|
|||
Js.log(Js.String2.repeat("ha", 5))
|
||||
|
|
@ -1 +0,0 @@
|
|||
replace(string(5,"@"),"@","hello")
|
||||
Loading…
Add table
Add a link
Reference in a new issue