Skip to content

Commit

Permalink
Str.[split,lines,words,ords] returns Seq
Browse files Browse the repository at this point in the history
  • Loading branch information
b2gills committed Sep 26, 2018
1 parent ce54d64 commit 86fca8d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/Type/Str.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -407,22 +407,22 @@ under its working name of L<parse-names>. This denomination will be removed in t
=for code :method
multi sub split( Str:D $delimiter, Str:D $input, $limit = Inf,
:$skip-empty, :$v, :$k, :$kv, :$p --> Positional)
:$skip-empty, :$v, :$k, :$kv, :$p --> Seq)
=for code :method
multi sub split(Regex:D $delimiter, Str:D $input, $limit = Inf,
:$skip-empty, :$v, :$k, :$kv, :$p --> Positional)
:$skip-empty, :$v, :$k, :$kv, :$p --> Seq)
=for code :method
multi sub split(List:D $delimiters, Str:D $input, $limit = Inf,
:$skip-empty, :$v, :$k, :$kv, :$p --> Positional)
:$skip-empty, :$v, :$k, :$kv, :$p --> Seq)
=for code :method
multi method split(Str:D: Str:D $delimiter, $limit = Inf,
:$skip-empty, :$v, :$k, :$kv, :$p --> Positional)
:$skip-empty, :$v, :$k, :$kv, :$p --> Seq)
=for code :method
multi method split(Str:D: Regex:D $delimiter, $limit = Inf,
:$skip-empty, :$v, :$k, :$kv, :$p --> Positional)
:$skip-empty, :$v, :$k, :$kv, :$p --> Seq)
=for code :method
multi method split(Str:D: List:D $delimiters, $limit = Inf,
:$skip-empty, :$v, :$k, :$kv, :$p --> Positional)
:$skip-empty, :$v, :$k, :$kv, :$p --> Seq)
Splits a string up into pieces based on delimiters found in the string.
Expand Down Expand Up @@ -522,8 +522,8 @@ is returned by using features which explicitly set the top-level capture.
=head2 routine lines
multi sub lines(Str:D $input, $limit = Inf --> Positional)
multi method lines(Str:D $input: $limit = Inf --> Positional)
multi sub lines(Str:D $input, $limit = Inf --> Seq)
multi method lines(Str:D $input: $limit = Inf --> Seq)
Returns a list of lines (without trailing newline characters), i.e. the
same as a call to C<$input.comb( / ^^ \N* /, $limit )> would.
Expand All @@ -537,8 +537,8 @@ Examples:
=head2 routine words
multi sub words(Str:D $input, $limit = Inf --> Positional)
multi method words(Str:D $input: $limit = Inf --> Positional)
multi sub words(Str:D $input, $limit = Inf --> Seq)
multi method words(Str:D $input: $limit = Inf --> Seq)
Returns a list of non-whitespace bits, i.e. the same as a call to
C<$input.comb( / \S+ /, $limit )> would.
Expand Down Expand Up @@ -1217,7 +1217,7 @@ Example:
=head2 method ords
multi method ords(Str:D: --> Positional)
multi method ords(Str:D: --> Seq)
Returns a list of Unicode codepoint numbers that describe the codepoints making up the string.
Expand Down

0 comments on commit 86fca8d

Please sign in to comment.