Atom - - Sublist Occurs


Tags: array , boolean

Arity: dyadic

This atom is dyadic, which means it takes two arguments.


Return 1 if x occurs as a contiguous sublist in y and 0 otherwise.


This takes the element on the left and the list on the right. If you need the inverse, instead of ẇ@, consider using w (Index Of Sublist). It does not return a boolean value, but you can use it if you only need to check truthiness/falsiness.