SYNOPSIS # {pairs => [{key => 'year', val => 2009}, {key => 'subject', val => 'Perl'}]} assoc(fields, pairs.*.key, pairs.*.val) # {fields => {subject => 'Perl', year => 2009}, pairs => [...]}