Methods

inΒΆ

in(needle:Str, haystack:Str)

Determin if needle substring occurs at least once in haystack
Source: stdlib.ngs:2316

needle

The string to find

haystack

The string to search in

Returns

Bool

Example

"bc" in "abcd"
"x" not in "abcd"