Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move method contains to Cool
  • Loading branch information
gfldex committed Jul 14, 2016
1 parent ccd7a92 commit d9ee3fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions doc/Type/Cool.pod6
Expand Up @@ -1329,6 +1329,16 @@ L<Regex|/type/Regex> as a list of strings.
say "6 or 12".comb(/\d+/).join(", "); # 6, 12
=head2 method contains
multi method contains(Cool:D: Str(Cool) $needle, Cool $start?) returns True:D
Returns C<True> if the invocant contains the C<$needle> at any position within
the string. If $start is provided skip as many characters.
say "Hello, World".contains('hello'); # False
say "Hello, World".contains(','); # True
=head2 routine index
Defined as:
Expand Down
10 changes: 0 additions & 10 deletions doc/Type/Str.pod6
Expand Up @@ -544,16 +544,6 @@ Returns C<True> if the invocant is identical to or ends with C<$needle>.
say "Hello, World".ends-with('Hello'); # False
say "Hello, World".ends-with('ld'); # True
=head2 method contains
multi method contains(Cool:D: Str(Cool) $needle, Cool $start?) returns True:D
Returns C<True> if the invocant contains the C<$needle> at any position within
the string. If $start is provided skip as many characters.
say "Hello, World".contains('hello'); # False
say "Hello, World".contains(','); # True
=head2 method subst
multi method subst(Str:D: $matcher, $replacement, *%opts)
Expand Down

0 comments on commit d9ee3fe

Please sign in to comment.