[ENH][ANSI] Collection>>allSatisfy:
Michael Lucas-Smith
ich at driftwood.darktech.org
Wed Jul 5 08:57:40 UTC 2000
Marcel Weiher wrote:
> The ANSI spec (or at least the draft) specifies an #allSatisfy:
> method in Collection similar to #anySatisfy:, which doesn't seem to
> be in my 2.8a image. If it was added in the meantime and I missed
> it, please disregard:
>
> allSatisfy: aBlock
> "returns wether all the elements in the receiver satisfy
> the condition specified in aBlock"
>
> self do:[:item | (aBlock value: item) ifFalse: [^ false]].
> ^ true
I could have _sworn_ this was called #conform: aBlock ...? Maybe thats
just an IBM Smalltalk thing?
Michael Lucas-Smith.
More information about the Squeak-dev
mailing list
|