Skip to content

Commit

Permalink
Adds join refs #1494
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Feb 21, 2019
1 parent 7a8b99c commit 45c8634
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions doc/Type/Any.pod6
Expand Up @@ -151,9 +151,9 @@ Defined as:
multi method sort()
multi method sort(&custom-routine-to-use)
Sorts iterables with L<cmp|/routine/cmp> or given code object and returns a new L<Seq|/type/Seq>.
Optionally, takes a L<Callable|/type/Callable> as a positional parameter, specifying how to
sort.
Sorts iterables with L<cmp|/routine/cmp> or given code object and returns a new
L<Seq|/type/Seq>. Optionally, takes a L<Callable|/type/Callable> as a positional
parameter, specifying how to sort.
Examples:
Expand Down Expand Up @@ -821,6 +821,19 @@ L«C<List.permutations>|/type/List#routine_permutations» on it.
say set(1,2).permutations;
# OUTPUT: «((2 => True 1 => True) (1 => True 2 => True))␤»
=head2 method join
Defined as
method join($separator = '') is nodal
Converts the object to a list, and applies
L<C<list.join>|/type/List#routine_join> to it. Can take a separator, which is an
empty string by default.
(1..3).join.say ; # OUTPUT: «123␤»
<a b c>.join("❧").put; # OUTPUT: «a❧b❧c␤»
=head2 method categorize
Defined as:
Expand Down

0 comments on commit 45c8634

Please sign in to comment.