immutable

Make data structures immutable

NAME

immutable - Make data structures immutable

SYNOPSIS

use immutable;

my $ima := immutable @array;
my $imh := immutable %hash;
my $ims := immutable @array, %hash;

DESCRIPTION

immutable provides a single subroutine immutable that will return an immutable value-type data-structure for any data-structure given.

Inspired by a comment by Ralph Mellor on /r/rakulang.

AUTHOR

Elizabeth Mattijsen [email protected]

Source can be located at: https://github.com/lizmat/immutable . Comments and Pull Requests are welcome.

COPYRIGHT AND LICENSE

Copyright 2022 Elizabeth Mattijsen

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

immutable v0.0.1

Make data structures immutable

Authors

  • Elizabeth Mattijsen

License

Artistic-2.0

Dependencies

ValueList:ver<0.0.2>:auth<zef:lizmat>ValueMap:ver<0.0.2>:auth<zef:lizmat>

Test Dependencies

Provides

  • immutable

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.