The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Update::Immutable - React-compatible data-structure update utility

SYNOPSIS

    use Update::Immutable;

    my $orig = { a => 1 };

    my $new = Update::Immutable::update($orig, { b => { '$set' => 2 } });

    ## new:  { a => 1, b => 2 }
    ## orig: { a => 1 }

DESCRIPTION

This is a perl implementation of the react update function.

There are some additional features and bugfixes. For details, see the companion javascript module.

SEE ALSO

Update-Immutable github repo

The companion javascript module

AUTHOR

Doug Hoyte, <doug@hcsw.org>

COPYRIGHT & LICENSE

Copyright 2016 Doug Hoyte.

This module is licensed under the same terms as perl itself.