[Newbies] Code question.

Matthew Fulmer tapplek at gmail.com
Thu Jul 5 23:54:22 UTC 2007


On Thu, Jul 05, 2007 at 04:28:49PM -0700, Blake wrote:
> I was reading Stephen Wessals morphic tutorial and came across this:
> 
> self activeSegments values anySatisfy: [:each | each = true]
> 
> which I thought was odd, and so I first replaced it with:
> 
> self activeSegments values anySatisfy: [:each | each = true]

I assume you meant
self activeSegments anySatisfy: [:each | each = true]

> and then just:
> 
> self activeSegments includes: true
> 
> I think this should be fine since Dictionary's "do" operates on values  
> anyway, right?
> 
> Or am I missing something?

Sounds right to me

-- 
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808


More information about the Beginners mailing list