equal
deleted
inserted
replaced
36 |
36 |
37 examples |
37 examples |
38 " |
38 " |
39 |coll| |
39 |coll| |
40 |
40 |
41 coll := (1 to:10) asOrderedCollection from:8. |
41 coll := #(1 2 3 4 5 6 7 8 9 10) from:8. |
42 coll. |
42 Transcript show:'from 8: '; showCR:coll. |
43 coll size. |
43 Transcript show:'size: '; showCR:(coll size). |
44 coll at:1. |
44 Transcript show:'at 1: '; showCR:(coll at:1). |
45 coll do:[:each | Transcript showCR:each]. |
45 Transcript show:'first: '; showCR:(coll first). |
|
46 Transcript show:'last: '; showCR:(coll last). |
|
47 coll do:[:each | Transcript show:'do: '; showCR:each]. |
|
48 coll reverseDo:[:each | Transcript show:'reverseDo: '; showCR:each]. |
46 |
49 |
47 |
50 |
48 |coll| |
51 |coll| |
49 |
52 |
50 coll := (1 to:10) asOrderedCollection from:3 to:8. |
53 coll := (1 to:10) asOrderedCollection from:3 to:8. |
288 ! ! |
291 ! ! |
289 |
292 |
290 !ReindexedCollection class methodsFor:'documentation'! |
293 !ReindexedCollection class methodsFor:'documentation'! |
291 |
294 |
292 version |
295 version |
293 ^ '$Header: /cvs/stx/stx/libbasic2/ReindexedCollection.st,v 1.3 2004-06-07 09:05:31 cg Exp $' |
296 ^ '$Header: /cvs/stx/stx/libbasic2/ReindexedCollection.st,v 1.4 2006-03-20 08:53:11 cg Exp $' |
294 ! ! |
297 ! ! |