June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
4
Task/Repeat-a-string/BaCon/repeat-a-string-1.bacon
Normal file
4
Task/Repeat-a-string/BaCon/repeat-a-string-1.bacon
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
DOTIMES 5
|
||||
s$ = s$ & "ha"
|
||||
DONE
|
||||
PRINT s$
|
||||
1
Task/Repeat-a-string/BaCon/repeat-a-string-2.bacon
Normal file
1
Task/Repeat-a-string/BaCon/repeat-a-string-2.bacon
Normal file
|
|
@ -0,0 +1 @@
|
|||
PRINT FILL$(5, ASC("x"))
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
"ha"^5
|
||||
'*'^5
|
||||
#the (^) operator is really just call to the `repeat` function
|
||||
repeat("ha",5)
|
||||
@show "ha" ^ 5
|
||||
|
||||
# The ^ operator is really just call to the `repeat` function
|
||||
@show repeat("ha", 5)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
"ha" x 5
|
||||
print "ha" x 5
|
||||
|
|
|
|||
5
Task/Repeat-a-string/Red/repeat-a-string.red
Normal file
5
Task/Repeat-a-string/Red/repeat-a-string.red
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
>> str: "Add duplicates to string"
|
||||
>> insert/dup str "ha" 3
|
||||
== "hahahaAdd duplicates to string"
|
||||
>> insert/dup tail str "ha" 3
|
||||
== "hahahaAdd duplicates to stringhahaha"
|
||||
Loading…
Add table
Add a link
Reference in a new issue