Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix map/filter Subscribable combinators.
  • Loading branch information
jnthn committed Nov 2, 2013
1 parent c95b6d9 commit 42f2a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/jvm/core/Threading.pm
Expand Up @@ -781,7 +781,7 @@ my class SubscribableOperations is repr('Uninstantiable') {
my $sub = self.Subscribable::subscribe(|c);
my $ssn = $!source.subscribe(
-> \val {
if (filter(val)) { self!next(val) }
if (&!filter(val)) { self!next(val) }
},
{ self!last(); },
-> $ex { self!fail($ex) }
Expand All @@ -803,7 +803,7 @@ my class SubscribableOperations is repr('Uninstantiable') {
my $sub = self.Subscribable::subscribe(|c);
my $ssn = $!source.subscribe(
-> \val {
self!next(mapper(val))
self!next(&!mapper(val))
},
{ self!last(); },
-> $ex { self!fail($ex) }
Expand Down

0 comments on commit 42f2a5f

Please sign in to comment.