http://www.perlmonks.org?node_id=1055999


in reply to Re^2: inverting hash / grouping values
in thread inverting hash / grouping values

I'm confused by your question. I have seen a key and its value frequently refered to as a key/value pair.

Do I misunderstand you?

Replies are listed 'Best First'.
Re^4: inverting hash / grouping values
by LanX (Saint) on Sep 27, 2013 at 15:24 UTC
    > I have seen a key and its value frequently refered to as a key/value pair.

    the result of this inversion operation is a HoA  { key1 => [ value11, value12], key2 => [value21],  ...}

    And neither

    • a hash with key/value pairs { key1 =>value1 , key2 => value2, ...}
    • a list with key/value pairs ( key1, value1, key2, value2 ,...)
    • a list of arrays with pairs (tuples) ( [key1, value1], [key2,value2], ... )

    IMHO all better interpretations.

    Cheers Rolf

    ( addicted to the Perl Programming Language)