go ahead... be a heretic | |
PerlMonks |
Re^2: what would you like to see in perl5.12? (trees)by ysth (Canon) |
on Aug 20, 2007 at 03:42 UTC ( [id://633702]=note: print w/replies, xml ) | Need Help?? |
The only script-visible changes would be the module you include to say you want sorted hashesIt'd make more sense to me to have a :btree attribute on the hash declaration (does that mean lexical hashes only? maybe). Would the attribute take an optional comparison function? and the function it exports so you 'seek' the each operator.I'd put that in Hash::Util. Is that seek to a particular key value, or seek to key N?
In Section
Meditations
|
|