new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
12
Task/Arrays/Smalltalk/arrays-7.st
Normal file
12
Task/Arrays/Smalltalk/arrays-7.st
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
oc := OrderedCollection withAll: #(4 5 6).
|
||||
oc add:1. oc add:2. oc add:3.
|
||||
foo := oc removeFirst.
|
||||
oc addFirst:10.
|
||||
oc removeLast.
|
||||
oc at:2 put: 'someString'.
|
||||
oc add:123 beforeIndex:10.
|
||||
oc asArray printCR.
|
||||
oc2 := oc copyFrom:5 to:10
|
||||
oc indexOf: 'someString'
|
||||
oc findFirst:[:el | el isString]
|
||||
"hundreds of other methods skipped here.."
|
||||
Loading…
Add table
Add a link
Reference in a new issue