Dictionary>>#collect: should return a dictionary

Alan Lovejoy squeak-dev.sourcery at forum-mail.net
Wed Feb 14 21:21:14 UTC 2007


<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.)

--Alan





More information about the Squeak-dev mailing list