Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add a few commatraps
  • Loading branch information
TimToady committed Apr 6, 2015
1 parent 292ef66 commit d76ea82
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -103,7 +103,18 @@ class Perl6::Actions is HLL::Actions does STDActions {
our $STATEMENT_PRINT;

# Could add to this based on signatures.
our %commatrap := nqp::hash('&grep', 1, '&map', 1, '&sort', 1, '&reduce', 1, '&classify', 1, '&categorize', 1,);
our %commatrap := nqp::hash(
'&categorize', 1,
'&classify', 1,
'&first', 1,
'&first-index', 1,
'&grep', 1,
'&grep-index', 1,
'&last-index', 1,
'&map', 1,
'&reduce', 1,
'&sort', 1,
);

INIT {
# If, e.g., we support Perl up to v6.1.2, set
Expand Down

0 comments on commit d76ea82

Please sign in to comment.