[squeak-dev] Re: converting lists of integers and ranges of integers
from a string
glenpaling
slp5591 at me.com
Mon Jun 6 14:04:43 UTC 2011
Smalltalk already has an interval syntax. I suggest you start with that. Try:
{ -9. (-5 to: -3). (-1 to: 4). 7. (11 to: 15)} do: [:each |
each asOrderedCollection do: [ :item |
Transcript show: item; space]].
Glen
--
View this message in context: http://forum.world.st/converting-lists-of-integers-and-ranges-of-integers-from-a-string-tp3576740p3576985.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|