Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Arrays/Self/arrays-1.self
Normal file
1
Task/Arrays/Self/arrays-1.self
Normal file
|
|
@ -0,0 +1 @@
|
|||
vector copySize: 100
|
||||
1
Task/Arrays/Self/arrays-2.self
Normal file
1
Task/Arrays/Self/arrays-2.self
Normal file
|
|
@ -0,0 +1 @@
|
|||
vector copySize: 100 FillingWith: anObject
|
||||
1
Task/Arrays/Self/arrays-3.self
Normal file
1
Task/Arrays/Self/arrays-3.self
Normal file
|
|
@ -0,0 +1 @@
|
|||
(1 & 'Hello' & 2.0 & someObject) asVector
|
||||
9
Task/Arrays/Self/arrays-4.self
Normal file
9
Task/Arrays/Self/arrays-4.self
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|v|
|
||||
"creates an vector that holds up to 20 elements"
|
||||
v: vector copySize: 20.
|
||||
"access the first element"
|
||||
v first printLine.
|
||||
"access the 10th element"
|
||||
(v at: 9) printLine.
|
||||
"put 100 as second value"
|
||||
vat: 1 Put: 100.
|
||||
3
Task/Arrays/Self/arrays-5.self
Normal file
3
Task/Arrays/Self/arrays-5.self
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
v do: [:each | each printLine].
|
||||
v copy mapBy: [:each | each squared].
|
||||
v copy filterBy: [:each | each > 10].
|
||||
11
Task/Arrays/Self/arrays-6.self
Normal file
11
Task/Arrays/Self/arrays-6.self
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|s|
|
||||
"creates a new sequence"
|
||||
s: sequence copyRemoveAll.
|
||||
"add an element"
|
||||
s addLast: 'Hello'.
|
||||
"access the first element"
|
||||
s first printLine.
|
||||
"remove the first element"
|
||||
s removeFirst.
|
||||
"Check size"
|
||||
s size printLine.
|
||||
Loading…
Add table
Add a link
Reference in a new issue