The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.