Skip to content
Permalink
Browse files

Correct 1dim shaped array iterator count-only/bool-only semantics

  • Loading branch information...
lizmat committed Sep 8, 2018
1 parent 64ddaca commit 9738dfbf21a504cd223721abd5f7667be8205811
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/Shaped1Array.pm6
@@ -208,8 +208,8 @@
($!pos = $i) # mark as done
)
}
method count-only() { nqp::p6box_i(nqp::elems($!reified)) }
method bool-only() { nqp::p6bool(nqp::elems($!reified)) }
method count-only() { nqp::elems($!reified) - $!pos - 1 }
method bool-only() { nqp::p6bool(self.count-only) }
method sink-all(--> IterationEnd) {
$!pos = nqp::elems($!reified)
}

0 comments on commit 9738dfb

Please sign in to comment.
You can’t perform that action at this time.