in reply to Re^3: MCE::OrdHash naming Push and Unshift methods supporting merging and reordering
in thread MCE::OrdHash naming Push and Unshift methods supporting merging and reordering
This is done and committed into trunk. All methods names begin with an upper case letter for consistency. Keys, Values, and Pairs are compatible with the same in MCE::Shared::Hash which lacks indices for not being ordered.
## KeysInd (indices), ValuesInd (indices), PairsInd (indices) ## Keys (keys ), Values (keys ), Pairs (keys ) ## Pop, Push (merge ), Shift, Unshift (merge ), Splice ## PushNew (reorder), UnshiftNew (reorder),
Thus, MCE::OrdHash is mostly compatible with Tie::IxHash except for Keys and Values which take keys as arguments, not indices. KeysInd and ValuesInd come included receiving indices for compatibility.
Thank you, Mario
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: MCE::OrdHash naming Push and Unshift methods supporting merging and reordering
by GrandFather (Saint) on Aug 21, 2015 at 08:32 UTC | |
by marioroy (Prior) on Aug 21, 2015 at 13:16 UTC |