- 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
val
is Str, thenx
is substring. - if
val
is List, thenx
is item to search.