The function returns a vector of the positions of (first) matches of its first argument in its second.
values to be matched
the values to be matched against
BASIX.match stops at the first match and continues with the next
elements starting from the match position in
The native R solution would be:
1 2 3 4