Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
minmax now one-arg
  • Loading branch information
TimToady committed Sep 19, 2015
1 parent 032dd7f commit 039de8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Any-iterable-methods.pm
Expand Up @@ -725,8 +725,8 @@ multi sub infix:<max>(+args) { args.max }
sub max(+args is raw, :&by = &infix:<cmp>) { args.max(&by) }

proto sub infix:<minmax>(|) is pure { * }
multi sub infix:<minmax>(**@args is raw) { @args.minmax }
sub minmax(**@args is raw, :&by = &infix:<cmp>) { @args.minmax(&by) }
multi sub infix:<minmax>(+args) { args.minmax }
sub minmax(+args, :&by = &infix:<cmp>) { args.minmax(&by) }

proto sub map(|) {*}
# fails integration/99problems-21-to-30, test 12/13
Expand Down

0 comments on commit 039de8f

Please sign in to comment.