I like your suggestion and will rename the methods to PushNew and UnshiftNew. Thank you GrandFather.
These are the last bits that boggles my mind. The Keys and Values methods in Tie::IxHash take indices as arguments. MCE::OrdHash does the same for compatibility and includes methods for receiving keys. Arguments are optional for all of them. The Pairs method return key/value pairs.
## Keys (indices), Values (indices), Pairs (indices) ## keys (keys ), values (keys ), pairs (keys )
Are these okay? The Keys and Values methods cannot change to not break compatibility with Tie::IxHash.
Thank you in advance for guidance on this.
Sincerely, Mario
In reply to Re^2: MCE::OrdHash naming Push and Unshift methods supporting merging and reordering
by marioroy
in thread MCE::OrdHash naming Push and Unshift methods supporting merging and reordering
by marioroy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |