Find text in a string
lib callCapy
function find(haystack : string, needle : string) s64
Description
find searches a string for another string.
For a list-shaped dval, use some to test for a matching item.
Return Values
This function returns the byte position of needle. It returns -1 when it does not find needle.
Example
Capy
print(find("one,two", "two"), "\n")