[ANSI-Smalltalk] List of interesting methods, Collection only
Andres Valloud
andres.valloud at gmail.com
Thu Mar 20 03:54:44 GMT 2008
Hello,
Paolo's list had the following messages for Collection (note the list is
subsequently trimmed below).
Collection class>>join:
Collection>>anyOne
Collection>>copyReplacing:withObject:
Collection>>copyWith:
Collection>>copyWithout:
Collection>>count:
Collection>>empty
Collection>>fold:
Collection>>gather:
Collection>>identityIncludes:
Collection>>isEmpty
Collection>>isSequenceable
Collection>>noneSatisfy:
Collection>>notEmpty
Collection>>occurrencesOf:
Collection>>removeAll:
Collection>>removeAll:ifAbsent:
Collection>>removeAllSuchThat:
Collection>>size
>From the above, I think the following are good candidates:
Collection>>copyReplacing:withObject: (perhaps renamed to
copyReplacing:with:)
Collection>>copyWith:
Collection>>copyWithout:
Collection>>count:
Collection>>fold: (I know Squeak does not have this)
Collection>>noneSatisfy: (renamed to noneSatisfies:?)
Collection>>removeAllSuchThat: (I'd prefer to use the selectors
eject:/keep:)
I also have questions about these:
Collection>>empty (isn't this removeAll?)
Collection>>gather: (what's this?)
Collection>>removeAll: (what is the argument?)
Collection>>removeAll:ifAbsent:
I do not have much of an opinion on these:
Collection>>anyOne (perhaps renamed to #any)
Collection>>identityIncludes:
Thoughts?
Andres.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openskills.org/pipermail/ansi-smalltalk/attachments/20080319/19430aa3/attachment.html
More information about the ANSI-Smalltalk
mailing list