We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87e6a7b commit 94cf5bbCopy full SHA for 94cf5bb
doc/Type/Str.pod6
@@ -949,7 +949,8 @@ multi-match options like C<:g> are used).
949
multi method substr(Str:D $s: Range $from-to --> Str:D)
950
951
Returns a substring of the original string, between the indices specified by
952
-C<$from-to>'s endpoints or from index C<$from> and of length C<$chars>.
+C<$from-to>'s endpoints (coerced to L<Int>) or from index C<$from> and of
953
+length C<$chars>.
954
955
Both C<$from> and C<$chars> can be specified as L<Callable>, which will be
956
invoked with the L<length|/routine/chars> of the original string and the
0 commit comments