contains(s: utf8, needle: utf8) → bool
Category: [strings](builtinsstrings)_
Whether a string contains a substring.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| s | utf8 | The string to search. | — |
| needle | utf8 | The substring to look for. | — |
| returns | bool | true if the substring is present. | — |
wcl
contains("hello", "ell") // does the string contain the substring? → true