[Newbies] last n entries of an OrderedCollection
sergiolist at village-buzz.com
Mon Apr 12 03:14:10 UTC 2010
wondering of there is a built in function to spit out the last n
entires of an ordered collection..
in a pinch, this worked:
| ipcount newList |
ipcount := self repository size.
newList := OrderedCollection new.
(ipcount - anInteger) to: ipcount do: [ :n | newList add: (self
repository at: n) ].
but i am guessing that is a total kludge...
photographer, journalist, visionary
More information about the Beginners