asDictionary

Niko Schwarz niko.schwarz at gmx.net
Mon Jan 6 16:17:05 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

One more thing I don't understand, why isn't there a comfy method to emulate 
Dictionary literals? 
I've stepped over code that made a large array and used first and second on a 
2-dimensional array all the time.. it seems to me this would be needed.

It shouldn't be so hard to define as Dictionary, so that 
{ 1 -> 2 . 2 -> 4 . 3 -> 6 } asDictionary

would return a dictionary.
Actually ^ d _ Dictionary new. each: [ :each | d add: each ] should do i.

regards,

nick

- -- 
The Psblurtex is an 18-inch long anaconda that hides in the gentlemen's
outfitting departments of Amazonian stores and is often bought by
mistake since its colors are those of the London Reform Club.  Once
tied around its victim's neck, it strangles him gently and then claims
the insurance before running off to Germany where it lives in hiding.
		-- Mike Harding, "The Armchair Anarchist's Almanac"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+GawE3P3nmXTVnC8RAk8yAKCxIEzioxap/KFhuXYv+fttwBAPKACgmGaX
A6tI+FwwCI8WpYqNMR24WaY=
=Ptty
-----END PGP SIGNATURE-----




More information about the Squeak-dev mailing list