@@ -350,7 +350,7 @@ one sublist, or many:
350
350
grab(flat (1, 2), (3, 4)); # OUTPUT: «grab 1grab 2grab 3grab 4»
351
351
grab(flat $(1, 2), $(3, 4)); # OUTPUT: «grab 1 2grab 3 4»
352
352
grab(flat (1, 2)); # OUTPUT: «grab 1grab 2»
353
- grab(flat $(1, 2)); # OUTPUT: «grab 1 2»
353
+ grab(flat $(1, 2)); # OUTPUT: «grab 1grab 2»
354
354
355
355
It is worth noting that mixing binding and sigilless variables
356
356
in these cases requires a bit of finesse, because there is no Scalar
@@ -529,7 +529,7 @@ sub circumfix:<START END>(*@elems) {
529
529
"start", @elems, "end"
530
530
}
531
531
532
- say START 'a', 'b', 'c' END; # OUTPUT: «start a b c end»
532
+ say START 'a', 'b', 'c' END; # OUTPUT: «( start [ a b c] end) »
533
533
= end code
534
534
535
535
Postcircumfixes also receive the term after which they are parsed as
@@ -841,8 +841,8 @@ sub print-bar(Bar() $bar) {
841
841
print-bar Foo.new;
842
842
= end code
843
843
844
- Coercion types are supposed to work wherever types work, but Rakudo
845
- currently (2015.02 ) only implements them for subroutine parameters.
844
+ Coercion types are supposed to work wherever types work, but Rakudo currently
845
+ (2017.05 ) only implements them in signatures, for both parameters and return types .
846
846
847
847
= head1 C < sub MAIN >
848
848
X < |MAIN > X « |command line arguments »
0 commit comments