Skip to content
Permalink
Browse files

s/Iterator/PredictiveIterator for Baggy

  • Loading branch information...
lizmat committed Sep 9, 2018
1 parent 78ae902 commit 000ac81e606417ea6bc225e8ba7490070c8ddf81
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/Baggy.pm6
@@ -437,7 +437,7 @@ my role Baggy does QuantHash {
}
multi method pick(Baggy:D: Whatever) { self.pick(Inf) }

my class PickN does Iterator {
my class PickN does PredictiveIterator {
has $!raw; # the IterationSet of the Baggy
has $!weights; # clone of raw, but with just the weights
has $!todo; # number of draws to do
@@ -530,7 +530,6 @@ my role Baggy does QuantHash {
)
}
method count-only() { $!todo - 1 }
method bool-only(--> True) { }
method sink-all() { $!todo := 0 }

}

0 comments on commit 000ac81

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