See Code and Example in My Repository : Bhansali's Shell Maps
It has 2 Libraries Created for Shell :
1. Map ( Map.h )
2. Ordered Map ( Ordered_Map.h )
Example.sh shows usage where I am Importing it like we do in C++/Java
It has at least Following functionalities :
Creating Map/Ordered Map
Putting Values in It Manually By Using Put Method ( map.put Key Value )
Getting Values Back ( map.get Key Value )
Remove Values from Map ( map.remove Key )
Display Entire Map By Iterating it on All Indices
Displaying All Keys
Clearing Map ( Make it Empty )
Populating it with a Properties File ( map.populate Hamari.properties )
Get Value By Index, If it is OrderedMap ( map.getByIndex Index )