Skip to content

Commit

Permalink
Grammar provides list associativity of infix:<,>.
Browse files Browse the repository at this point in the history
And it's too early in the bootstrap to mention it here in code.
  • Loading branch information
jnthn committed Aug 10, 2015
1 parent b1a7ad4 commit a227fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -590,7 +590,7 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
}

# The , operator produces a List.
proto infix:<,>(|) is assoc('list') {*}
proto infix:<,>(|) {*}
multi infix:<,>() {
my \result = List.CREATE;
nqp::bindattr(result, List, '$!reified', BEGIN IterationBuffer.CREATE);
Expand Down

0 comments on commit a227fc4

Please sign in to comment.