Skip to content

Commit 45c8634

Browse files
committed
Adds join refs #1494
1 parent 7a8b99c commit 45c8634

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

doc/Type/Any.pod6

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ Defined as:
151151
multi method sort()
152152
multi method sort(&custom-routine-to-use)
153153
154-
Sorts iterables with L<cmp|/routine/cmp> or given code object and returns a new L<Seq|/type/Seq>.
155-
Optionally, takes a L<Callable|/type/Callable> as a positional parameter, specifying how to
156-
sort.
154+
Sorts iterables with L<cmp|/routine/cmp> or given code object and returns a new
155+
L<Seq|/type/Seq>. Optionally, takes a L<Callable|/type/Callable> as a positional
156+
parameter, specifying how to sort.
157157
158158
Examples:
159159
@@ -821,6 +821,19 @@ L«C<List.permutations>|/type/List#routine_permutations» on it.
821821
say set(1,2).permutations;
822822
# OUTPUT: «((2 => True 1 => True) (1 => True 2 => True))␤»
823823
824+
=head2 method join
825+
826+
Defined as
827+
828+
method join($separator = '') is nodal
829+
830+
Converts the object to a list, and applies
831+
L<C<list.join>|/type/List#routine_join> to it. Can take a separator, which is an
832+
empty string by default.
833+
834+
(1..3).join.say ; # OUTPUT: «123␤»
835+
<a b c>.join("❧").put; # OUTPUT: «a❧b❧c␤»
836+
824837
=head2 method categorize
825838
826839
Defined as:

0 commit comments

Comments
 (0)