Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
reductions are now under one-arg rule
  • Loading branch information
TimToady committed Sep 19, 2015
1 parent c48ef39 commit 8cd1edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion S12-methods/chaining.t
Expand Up @@ -66,7 +66,7 @@ eval-dies-ok('$foo->num', 'Perl 5 -> is dead (method call)');
# (A => (B => Mu)) => (C => Mu))
# ((A B) C)

my $cons = [=>] ( [=>] <A B>, Mu ), <C>, Mu;
my $cons = [=>] ( [=>] |<A B>, Mu ), <C>, Mu;

my $p = $cons.key;
ok( $cons.key.key =:= $p.key, 'chaining through temp variable' );
Expand Down
2 changes: 1 addition & 1 deletion integration/advent2009-day05.t
Expand Up @@ -19,7 +19,7 @@ is ([+] @a), 20, 'Sum all elements in a list';
is ([*] @a), 384, 'Multiply all elements in a list';
ok ([<=] @a), 'All elements of list are numerically sorted';
nok ([<=] @b), 'Not all elements of list are numerically sorted';
is ([min] @a, @b), 2, 'Find the smallest element of two lists';
is ([min] flat @a, @b), 2, 'Find the smallest element of two lists';
is (@a »+« @b), [18, 18, 18, 18], 'Hyper operator - pairwise addition';
is $(@a_copy = @a; @a_copy»++; @a_copy), [3, 5, 7, 9], 'Hyper operator - increment all elements in a list';
is (@a »min« @b), [2, 4, 6, 8], 'Hyper operator - finding minimum elements';
Expand Down

0 comments on commit 8cd1edb

Please sign in to comment.