Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2393 from FCO/master
Make .[] cache the Seq. Closes #2383
  • Loading branch information
zoffixznet committed Oct 19, 2018
2 parents 1361644 + 1954121 commit b84b090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Sequence.pm6
Expand Up @@ -52,6 +52,10 @@ my role Sequence does PositionalBindFailover {

method Numeric(::?CLASS:D:) { self.cache.elems }

multi method ZEN-POS(::?CLASS:D: |c) is raw {
self.cache.ZEN-POS(|c)
}

multi method AT-POS(::?CLASS:D: Int:D $idx) is raw {
self.cache.AT-POS($idx)
}
Expand Down

0 comments on commit b84b090

Please sign in to comment.