Signature: indexOf(s: string, needle: string) -> Result<int, StringError>

Description: Returns byte-index of first occurrence of needle, or Error(NotFound).

Parameters

Returns: Result<int, StringError>

Example

match indexOf("foo=bar", "=") { Success { value } => print(value) ... }