in reply to Idiom: hashes as sets
One tweak to save memory: use undef instead of 1 for the value and use exists to check for an item in the set. It makes things harder to read though.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Idiom: hashes as sets
by Narveson (Chaplain) on Jul 02, 2008 at 19:22 UTC | |
by parv (Parson) on Jul 04, 2008 at 02:38 UTC | |
Re^2: Idiom: hashes as sets
by Anonymous Monk on Jul 03, 2008 at 14:22 UTC | |
by Anonymous Monk on Jul 03, 2008 at 14:57 UTC |
In Section
Meditations