Multiple ways to have multiple keys

holatuwol

Developer
Traditionally, an ASH map with multiple keys is declared and accessed using the following sort of syntax:

item [int,int] awesome;
awesome[3,4] = $item[spices]


Beginning with the release of v10.3, there will be a second way to have multiple keys in an ASH map:

item [int][int] awesome;
awesome[3][4] = $item[spices]


The old way will continue to work and you are permitted to mix and match the two as much as you like for future scripts. Hopefully this will help people who are coming from a different programming background who would like to have the familiar syntax of accessing maps.
 
Top