2021-2: Index-Of Modified

Write code that behaves like the APL index-of function R←X⍳Y except that it returns 0 instead of 1+≢X for elements of Y not found in X.

Examples

Implementation

You can also run the tests via ⌘/shift + enter