Dictionary>>#collect: should return a dictionary

Philippe Marschall philippe.marschall at gmail.com
Wed Feb 14 21:57:01 UTC 2007


2007/2/14, Alan Lovejoy <squeak-dev.sourcery at forum-mail.net>:
> <Mathieu Suen>
> Looking at Dictionary>>#collect: I am wondering why it don't return a
> Dictionary.
> </Mathieu Suen>
>
> The ANSI Smalltalk Standard requires that Dictionary>>collect: answer a new
> Dictionary with the same keys, but whose values have been transformed by the
> transformer (the argument of the message.)

GST does so. STX returns a Bag of the values transformed, VW returns
an OrderedCollection of the values transformed.

Philippe

> --Alan
>
>
>
>



More information about the Squeak-dev mailing list