Documentation for method contains

Documentation for method contains, assembled from the following types:

class Cool

From Cool

(Cool) method contains

multi method contains(Cool:D: Str(Cool$needleCool $start? --> Bool:D)

Returns True if the invocant contains the $needle at any position within the string. If $start is provided skip as many characters.

say "Hello, World".contains('hello');      # OUTPUT: «False␤» 
say "Hello, World".contains(',');          # OUTPUT: «True␤»