Skip to content

Commit

Permalink
Adds example for | and capture, refs #1889
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jul 7, 2018
1 parent b465f43 commit 63a4c09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/Language/operators.pod6
Expand Up @@ -932,6 +932,7 @@ L<Hash> into an argument list.
foo( | <2 3 4>, 'a' | ' b', \( 3, 33) )
# OUTPUT: «[IntStr.new(2, "2"), IntStr.new(3, "3"),\
IntStr.new(4, "4"),any("a", " b"), \(3, 33)]␤»
foo( | \( 3, 33) ); # OUTPUT: «[3, 33]␤»
Outside of argument lists, it returns a L<Slip|/type/Slip>, which makes
Expand Down

0 comments on commit 63a4c09

Please sign in to comment.