T
Ted Flethuseo
I know how to build a hash table.
frequencies = Hash.new(0)
arr = line.split(',')
frequencies[arr[0]] += 1
and I know how to build an array
myArr = Array.new
but I want to know how to build an array of hash tables, as I need to
keep a set of
hash-tables sepparated, each one corresponding to an index of an array
that is split.
Any help appreciated.
Ted.
frequencies = Hash.new(0)
arr = line.split(',')
frequencies[arr[0]] += 1
and I know how to build an array
myArr = Array.new
but I want to know how to build an array of hash tables, as I need to
keep a set of
hash-tables sepparated, each one corresponding to an index of an array
that is split.
Any help appreciated.
Ted.