Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement listless map provisionally
  • Loading branch information
lizmat committed Nov 23, 2013
1 parent f276f25 commit 5175adf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Any.pm
Expand Up @@ -317,6 +317,7 @@ sub minmax(*@args, :&by = &infix:<cmp>) { @args.minmax(&by) }

proto map(|) {*}
multi map(&code, *@values) { @values.map(&code) }
multi map(&code) { (1..Inf).map(&code) }

proto grep(|) {*}
multi grep(Mu $test, *@values) { @values.grep($test) }
Expand Down

0 comments on commit 5175adf

Please sign in to comment.