in reply to RFC - Tie::Hash::Ranked
But having the functions within the module already would tip the convienence factor the other way. So I would be in favor of including them in your current API for Tie::Hash::Sorted. I expect the methods would be simple to implement and would result in little code bloat.
If you do choose to breakout into a new module, I would recommend a more expressive name like Tie::Hash::RankStatistics. <update> In the area of new methods, I think a median method would be useful: return the middle element, with a well-defined convention for even numbers of hash elements.
-Mark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC - Tie::Hash::Ranked
by Limbic~Region (Chancellor) on Oct 12, 2004 at 15:47 UTC |