Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
infix:<leg>: mnemonic, examples
  • Loading branch information
moritz committed Feb 14, 2015
1 parent 7fa0d46 commit 7588f2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Language/operators.pod
Expand Up @@ -729,10 +729,14 @@ if C<$a eqv $b>, then C<$a cmp $b> always returns C<Order::Same>.
multi sub infix:<leg>(Any, Any)
multi sub infix:<leg>(Str:D, Str:D)
String three-way comparator.
String three-way comparator. Short for I<less, equal or greater?>.
Coerces both arguments to L<Str>, and then does a lexicographic comparison.
say 'a' leg 'b'; Less
say 'a' leg 'a'; Same
say 'b' leg 'a'; More
=head2 infix C«<=>»
multi sub infix:«<=>»($a, $b) returns Order:D is assoc<none>
Expand Down

0 comments on commit 7588f2b

Please sign in to comment.