[squeak-dev] Noob question: array slice?

Bert Freudenberg bert at freudenbergs.de
Fri Aug 6 08:03:52 UTC 2010


On 06.08.2010, at 08:03, Casey Ransberger wrote:

> Given that I have a collection like #(foo bar baz 1 2 3), and I want to get elements 2...4, what selector do I use?
> I'm confused. Argh. Seems like I should be able to figure this out by now without what I think of being a pain. I guess I can just test the bounds, but yuck.
> 
> Halp! Invizibal #slice!


Can haz method finder?

	'hello'. (2 to: 4). 'ell'

- Bert -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100806/7affb1a4/attachment.htm


More information about the Squeak-dev mailing list