Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
sub forms of map and grep; two more passing test files
  • Loading branch information
moritz committed Jul 1, 2011
1 parent ae04dda commit ff2f951
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/core/Any.pm
Expand Up @@ -114,3 +114,8 @@ proto postfix:<-->(|$) { * }
multi postfix:<-->(Mu:D \$a is rw) { my $b = $a; $a = $a.pred; $b }
multi postfix:<-->(Mu:U \$a is rw) { $a = -1; 0 }

proto sub map(|$) {*}
multi sub map(&code, *@values) { @values.map(&code) }

proto sub grep(|$) {*}
multi sub grep(&code, *@values) { @values.grep(&code) }
4 changes: 2 additions & 2 deletions t/spectest.data
Expand Up @@ -57,7 +57,7 @@ S02-builtin_data_types/subscripts_and_context.t
# S02-literals/array-interpolation.t
# S02-literals/autoref.t
# S02-literals/char-by-name.t # icu
# S02-literals/char-by-number.t
S02-literals/char-by-number.t
S02-literals/fmt-interpolation.t
S02-literals/hash-interpolation.t
S02-literals/hex_chars.t
Expand Down Expand Up @@ -326,7 +326,7 @@ S06-signature/closure-parameters.t
S06-signature/named-placeholders.t
S06-signature/optional.t
S06-signature/passing-arrays.t
# S06-signature/passing-hashes.t
S06-signature/passing-hashes.t
# S06-signature/positional-placeholders.t
# S06-signature/positional.t
# S06-signature/scalar-type.t
Expand Down

0 comments on commit ff2f951

Please sign in to comment.