File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ Defined as:
151
151
multi method sort()
152
152
multi method sort(&custom-routine-to-use)
153
153
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.
157
157
158
158
Examples:
159
159
@@ -821,6 +821,19 @@ L«C<List.permutations>|/type/List#routine_permutations» on it.
821
821
say set(1,2).permutations;
822
822
# OUTPUT: «((2 => True 1 => True) (1 => True 2 => True))»
823
823
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
+
824
837
= head2 method categorize
825
838
826
839
Defined as:
You can’t perform that action at this time.
0 commit comments