Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement Array.clone; llfourn++
Fixes RT#129762: https://rt.perl.org/Ticket/Display.html?id=129762

Note that the clone shares the reifier with the original.
That was discussed and is desirable:
https://irclog.perlgeek.de/perl6-dev/2017-02-16#i_14113154
  • Loading branch information
zoffixznet committed Feb 16, 2017
1 parent 8f53a6f commit dc69daf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Array.pm
Expand Up @@ -47,6 +47,8 @@ my class Array { # declared in BOOTSTRAP
}
}

method clone { [self] }

method iterator(Array:D:) {

# something to iterate over in the future
Expand Down

0 comments on commit dc69daf

Please sign in to comment.