Kaba function string.find ed

Find a sub-string in text.

Syntax ed

func pure string.find(str: string, start: i32) -> i32?

Parameters ed

str: string
The sub-string to find in the source.

start: i32
Only start searching after this position in the source.

Return ed

The location of the sub-string. Or -1 if not found.