Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add subish WHAT()
  • Loading branch information
coke committed Jul 5, 2011
1 parent 2e59702 commit 5fa788d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/operators.pm
Expand Up @@ -88,6 +88,10 @@ sub SEQUENCE($left, $right, :$exclude_end) {
}, :$infinite), @right;
}

# XXX Wants to be a macro when we have them.
sub WHAT(\$x) {
$x.WHAT
}

proto sub infix:<...>(|$) { * }
multi sub infix:<...>($a, $b) { SEQUENCE($a, $b) }
Expand Down

0 comments on commit 5fa788d

Please sign in to comment.