locate

Return the index of the next instance of 'match' starting at position 'start', or source.length where there is no match.

Parameter 'start' defaults to 0

locate
(
T
)
(
const(T)[] source
,
const(T) match
,)

Meta