[Newbies] last n entries of an OrderedCollection
sergio_101
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...
thanks!
--
----
peace,
sergio
photographer, journalist, visionary
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
More information about the Beginners
mailing list