Skip to content

Commit

Permalink
Make sure Sequence.list also caches
Browse files Browse the repository at this point in the history
We expect .elems to cache, but .list was not cached.
  • Loading branch information
lizmat committed Jun 12, 2019
1 parent 8a37b93 commit 7af0fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Sequence.pm6
Expand Up @@ -29,7 +29,7 @@ my role PositionalBindFailover {
)
}
multi method list(::?CLASS:D:) {
List.from-iterator(self.iterator)
self.cache
}

method iterator() { ... }
Expand Down

0 comments on commit 7af0fb1

Please sign in to comment.