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]
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?
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
On Thu, 05 Jul 2007 16:54:22 -0700, Matthew Fulmer tapplek@gmail.com wrote:
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]
Newp. "values" is in there: http://squeak.preeminent.org/tut2007/html/020.html
beginners@lists.squeakfoundation.org