logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::assoc - associate two values as a hash key and value

Name

       Catmandu::Fix::assoc - associate two values as a hash key and value

See Also

       Catmandu::Fix

perl v5.40.0                                       2025-01-17                          Catmandu::Fix::assoc(3pm)

Synopsis

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

See Also