find builtin
find(text,needle)
Index of the first occurrence of a substring, or -1 when absent.
| Phase | all |
|---|
Example
@tt
log(str(find("hello", "ll")))Logs: 2
find builtinfind(text,needle)
Index of the first occurrence of a substring, or -1 when absent.
| Phase | all |
|---|
@tt
log(str(find("hello", "ll")))Logs: 2