- Index
- »
- axon
- »
- func:index
def
func:index
index(val, x, offset: 0)
Return the first match of x in val searching forward, starting at the specified offset index. A negative offset may be used to access from the end of string. Return null if no occurences are found:
- if
valis Str, thenxis substring. - if
valis List, thenxis item to search.