Skip to content

Commit

Permalink
Document 1- and 0- arg variants of &[∘]
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Mar 16, 2018
1 parent a94126d commit fe8961d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/Language/operators.pod6
Expand Up @@ -1213,6 +1213,15 @@ Both C<.count> and C<.arity> of the RHS will be maintained.
say f |g 'abc';
=end code
The single-arg candidate returns the given argument as is. The zero-arg candidate
returns an identify routine that simply returns its argument.

This comment has been minimized.

Copy link
@masak

masak Mar 16, 2018

"identity", surely?

This comment has been minimized.

Copy link
@zoffixznet

zoffixznet Mar 16, 2018

Author Contributor

Thanks. Fixed in 73602ad

my &composed = [∘] &uc;
say composed 'foo'; # OUTPUT: «FOO␤»
my &composed = [∘];
say composed 'foo'; # OUTPUT: «foo␤»
=head1 Junctive AND (all) Precedence
=head2 infix C«&»
Expand Down

0 comments on commit fe8961d

Please sign in to comment.