Browse files

Add sub pick().

  • Loading branch information...
1 parent 8aa37ff commit 3763c604c6a526cd9ce3554a95e049d2ffcebc44 @pmichaud pmichaud committed Jul 6, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/Any.pm
View
4 src/core/Any.pm
@@ -141,3 +141,7 @@ multi map(&code, *@values) { @values.map(&code) }
proto grep(|$) {*}
multi grep(Mu $test, *@values) { @values.grep($test) }
+
+proto pick(|$) { * }
+multi pick($n, *@values) { @values.pick($n) }
+

0 comments on commit 3763c60

Please sign in to comment.