Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Repeat-a-string/Smalltalk/repeat-a-string-1.st
Normal file
2
Task/Repeat-a-string/Smalltalk/repeat-a-string-1.st
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
v := 'ha'.
|
||||
v,v,v,v,v
|
||||
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-2.st
Normal file
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-2.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
((1 to: n) collect: [:x | 'ha']) joinUsing: ''.
|
||||
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-3.st
Normal file
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-3.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
(Array new:n withAll:'ha') asStringWith:''.
|
||||
3
Task/Repeat-a-string/Smalltalk/repeat-a-string-4.st
Normal file
3
Task/Repeat-a-string/Smalltalk/repeat-a-string-4.st
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ws := '' writeStream.
|
||||
n timesRepeat: [ws nextPutAll: 'ha'].
|
||||
ws contents.
|
||||
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-5.st
Normal file
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-5.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
(String streamContents:[:ws | n timesRepeat: [ws nextPutAll: 'ha']])
|
||||
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-6.st
Normal file
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-6.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
String new:n withAll:$*
|
||||
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-7.st
Normal file
1
Task/Repeat-a-string/Smalltalk/repeat-a-string-7.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
(String new:n) atAllPut:$*
|
||||
Loading…
Add table
Add a link
Reference in a new issue