I have source information in a file, and (part of) this information comes as
coordinates.
A coordinate consists of a letter followed by a number, ranging from a1 to
i9
I'd like to count the number of occurrences of each coordinate, and put them
in a matrix.
The matrix should look like this (metasyntax):
matrix = array ['a'..'i'][1..9]
Later on in the script I'd like to be able to refer to a cell in the matrix
by using the same letter/number combo.
I know I can define an array using strings as keys, but how can I define
a..i as keys without the need to specify them all individually?
TIA
Pjotr
coordinates.
A coordinate consists of a letter followed by a number, ranging from a1 to
i9
I'd like to count the number of occurrences of each coordinate, and put them
in a matrix.
The matrix should look like this (metasyntax):
matrix = array ['a'..'i'][1..9]
Later on in the script I'd like to be able to refer to a cell in the matrix
by using the same letter/number combo.
I know I can define an array using strings as keys, but how can I define
a..i as keys without the need to specify them all individually?
TIA
Pjotr
Comment