Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
unhide how to work with Array elements
  • Loading branch information
gfldex committed Feb 16, 2016
1 parent 4da1827 commit f693ca4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/Language/list.pod
Expand Up @@ -487,4 +487,13 @@ a mutable container that knows the difference between values and Scalar-wrapped
values is needed, or for very large Arrays where a native-typed array cannot be used.
Such a creature should never be passed back to unsuspecting users.
=head1 Working with Elements
To test for elements convert the C<List> or C<Array> to a L<C<Set>|/Type/Set>
or use a Set L<operator|/language/setbagmix>.
my @a = <foo bar buzz>;
say @a.Set<bar buzz>; # OUTPUT«(True True)␤»
say so 'bar' ∈ @a; # OUTPUT«True␤»
=end pod

0 comments on commit f693ca4

Please sign in to comment.