Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Repeat-a-string/Euphoria/repeat-a-string-1.euphoria
Normal file
5
Task/Repeat-a-string/Euphoria/repeat-a-string-1.euphoria
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
sequence s = ""
|
||||
for i = 1 to 5 do s &= "ha" end for
|
||||
puts(1,s)
|
||||
|
||||
hahahahaha
|
||||
3
Task/Repeat-a-string/Euphoria/repeat-a-string-2.euphoria
Normal file
3
Task/Repeat-a-string/Euphoria/repeat-a-string-2.euphoria
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
sequence s = repeat('*',5)
|
||||
|
||||
*****
|
||||
9
Task/Repeat-a-string/Euphoria/repeat-a-string-3.euphoria
Normal file
9
Task/Repeat-a-string/Euphoria/repeat-a-string-3.euphoria
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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}
|
||||
4
Task/Repeat-a-string/Euphoria/repeat-a-string-4.euphoria
Normal file
4
Task/Repeat-a-string/Euphoria/repeat-a-string-4.euphoria
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
include std/console.e -- for display
|
||||
include std/sequence.e -- for flatten
|
||||
sequence s = flatten(repeat("ha",5))
|
||||
display(s)
|
||||
7
Task/Repeat-a-string/Euphoria/repeat-a-string-5.euphoria
Normal file
7
Task/Repeat-a-string/Euphoria/repeat-a-string-5.euphoria
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"ha",
|
||||
"ha",
|
||||
"ha",
|
||||
"ha",
|
||||
"ha"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue