Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add degenerate infix:<~>
  • Loading branch information
coke committed Jul 5, 2011
1 parent 4353c16 commit 2e59702
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/metaops.pm
Expand Up @@ -106,3 +106,5 @@ sub METAOP_REDUCE_XOR(\$op, :$triangle) {
NYI "xor reduce NYI";
}

# degenerate case of operators, to be used by reduce() for the 0-ary case
multi sub infix:<~>($x = '') { ~$x }

0 comments on commit 2e59702

Please sign in to comment.