2015-7: Just in (Upper) Case

Membership X∊Y returns a boolean array of shape ⍴X with 1s indicating where elements of Y occur in X. For a vector X this results in a very convenient boolean mask.

In many instances, it is desirable to perform case-insensitive comparisons and operations. Write code to perform case-insensitive membership between two arrays.

Examples

Implementation

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