asDictionary

Niko Schwarz niko.schwarz at gmx.net
Mon Jan 6 21:06:12 UTC 2003


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

Am Montag, 6. Januar 2003 17:24 schrieb Niko Schwarz:

> 	| d |
>
> 	d _ Dictionary new.
> 	self
> 		do: [:each | d add: each].
> 	^ d

Or simpler..

asDictionary
	^ Dictionary withAll: self

regards,

nick
- -- 
Then a man said: Speak to us of Expectations.

He then said: If a man does not see or hear the waters of the Jordan,
then he should not taste the pomegranate or ply his wares in an open
market.

If a man would not labour in the salt and rock quarries then he should
not accept of the Earth that which he refuses to give of himself.

Such a man would expect a pear of a peach tree.
Such a man would expect a stone to lay an egg.
Such a man would expect Sears to assemble a lawnmower.
		-- Kehlog Albran, "The Profit"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Ge/E3P3nmXTVnC8RAkfvAKC0A+8z8gnwB3pCG7257zT/EkdIUACgpaVg
l8o6H6KD0TPPHeJ1m56yr9k=
=XDbU
-----END PGP SIGNATURE-----




More information about the Squeak-dev mailing list