Skip to content

Commit

Permalink
Make sure Supply/first without matcher also works
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 27, 2020
1 parent 05916ef commit 57dbc35
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core.c/Supply-factories.pm6
Expand Up @@ -273,9 +273,13 @@
}

method first(Supply:D: :$end, |c) {
$end
?? self.grep(|c).tail
!! self.grep(|c).head
c.list
?? $end
?? self.grep(|c).tail
!! self.grep(|c).head
!! $end
?? self.tail
!! self.head
}

my class ScheduleOn does SimpleOpTappable {
Expand Down

0 comments on commit 57dbc35

Please sign in to comment.