src/parser/match_lines.rb
# Take a sorted array and map the index to the element values
# This will work on an array containing any values as long as 
# the parameter passed is an array.
Take a sorted array and map the index to the element values
This will work on an array containing any values as long as
the parameter passed is an array.
Take a sorted array and map the index to the element values This will work on an array containing any values as long as the parameter passed is an array .
def constructHash(sortedArray)
    newHash = Hash.new
    sortedArray.each { |element|
        newHash[element[0]] = element[1]
    }
    return newHash
end
def constructHash ( sortedArray ) newHash = Hash . new sortedArray . each { | element | newHash [ element [ 0 ] ] = element [ 1 ] } return newHash end
Take a sorted array and map the index to the element values
This will work on an array containing any values as long as
the parameter passed is an array.
Take a sorted array and map the index to the element values This will work on an array containing any values as long as the parameter passed is an array .
sortedArray
<not_specific>