Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Array.cow (for copy-on-write)
This is basically just to get it out there and may be revoked at any time before the next release. It basically creates a copy of Array with aliases to the values: my @A = ^10; my @b = @a.cow; # values are shared @b[5] = 42; # element #5 no longer shared This as a result of a question at The Perl Conference: Can you do "Copy-On-Write" in Perl 6? I thought this could be useful.
- Loading branch information