Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S03] more idiomatic usage of junctions
  • Loading branch information
moritz committed Apr 9, 2012
1 parent ebb02bc commit 7bd51c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S03-operators.pod
Expand Up @@ -15,7 +15,7 @@ Synopsis 3: Perl 6 Operators
Created: 8 Mar 2004

Last Modified: 9 Apr 2012
Version: 249
Version: 250

=head1 Overview

Expand Down Expand Up @@ -3198,7 +3198,7 @@ Junctions come with the functional variants C<any>, C<all>, C<one>, and C<none>.

This opens doors for constructions like:

unless $roll == any(1..6) { print "Invalid roll" }
if $roll == none(1..6) { print "Invalid roll" }

if $roll == 1|2|3 { print "Low roll" }

Expand Down

0 comments on commit 7bd51c7

Please sign in to comment.