Re: Academic name for associative array when used to pair column names with data
Date: Thu, 20 Mar 2014 00:50:17 -0700 (PDT)
Message-ID: <bb88bcc7-b54e-43f5-97b4-f3183c7498d7_at_googlegroups.com>
On Thursday, March 20, 2014 12:26:57 AM UTC-7, Erwin..._at_ikan.be wrote:
> On Wednesday, March 19, 2014 2:08:48 PM UTC+1, william.d..._at_gmail.com wrote:
> > So, there's no proper way to distinguish by nomenclature a tuple of just the data values from a tuple of the pairing of the attribute names with the data values?
> > I'm picking on this because I'm trying to name something and would like to do better than "key-value" or "name-value" if I can.
He wonders about terminology for "a tuple of just the data values" vs ("from") "a tuple of the pairings[s]".
> Is your question for a proper name for the '2x1' thingy in isolation ?
He's calling that a "value".
On Tuesday, March 18, 2014 7:47:26 PM UTC-7, william.d..._at_gmail.com wrote:
> foreach my $tuple ( _at_data ) {
> my %name_needed
> = map { $column_names[$_] => $tuple->[$_] } 0 .. $#column_names;
> }
He uses map to convert an array of pointers to values, representing an ordered tuple, to a hash of name-value pairs, representing a relational tuple, and assigns it to a variable named name_needed that he needs/wants a better name for.
philip Received on Thu Mar 20 2014 - 08:50:17 CET