Maxima Function
read_hashed_array (file_name, A)
read_hashed_array(file_name,A,separator_flag)
read_hashed_array(S,A)
read_hashed_array(S,A,separator_flag)
Reads the file file_name or file stream S and returns its entire content as a hashed array. If separator_flag is not specified, the file is assumed space-delimited.
read_hashed_array
treats the first item on a line as a
hash key, and associates the remainder of the line (as a list) with the key.
For example,
the line 567 12 17 32 55
is equivalent to A[567]: [12, 17, 32, 55]$
.
Lines need not have the same numbers of elements.