Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better heading, fix link, move to a better place
  • Loading branch information
gfldex committed Feb 16, 2016
1 parent aa656c6 commit dbee887
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/Language/list.pod
Expand Up @@ -69,6 +69,15 @@ list in order and stopping after the last element:
for 1,2,3 { .say } # says 1, then says 2, then says 3
=head1 Testing for 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␤»
=head2 Sequences
Not all lists are born full of elements. Some only create as many elements
Expand Down Expand Up @@ -487,13 +496,4 @@ 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 dbee887

Please sign in to comment.