Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/Repeat-a-string/Lambdatalk/repeat-a-string.lambdatalk
Normal file
22
Task/Repeat-a-string/Lambdatalk/repeat-a-string.lambdatalk
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{S.map {lambda {_} ha} {S.serie 1 10}}
|
||||
-> ha ha ha ha ha ha ha ha ha ha
|
||||
|
||||
or
|
||||
|
||||
{S.replace \s
|
||||
by
|
||||
in {S.map {lambda {_} ha}
|
||||
{S.serie 1 10}}}
|
||||
-> hahahahahahahahahaha
|
||||
|
||||
or
|
||||
|
||||
{def repeat
|
||||
{lambda {:w :n}
|
||||
{if {< :n 0}
|
||||
then
|
||||
else :w{repeat :w {- :n 1}}}}}
|
||||
-> repeat
|
||||
|
||||
{repeat ha 10}
|
||||
-> hahahahahahahahahahaha
|
||||
Loading…
Add table
Add a link
Reference in a new issue