https://www.mathworks.com/help/matlab/ref/ismember.html

Let two arrays `a = ["1", "4", "7"]`

and `b = ["1","2","3,"4","5"]`

.

In MATLAB, `[Lia,Locb] = ismember(a, b)`

will lead to

```
Lia = [1, 1, 0]
Locb = [1, 4, 0]
```

Quickly looking over docs, I coudn’t find a Julian equivalent of `ismember`

.

Instead I can think two alternative ways.

```
# Way 1: Using comprehending lists
Lia = [each_item in b for each_item in a]
Locb = [findfirst(b, each_item) for each_item in a]
# Way 2: Vectorization (edited)
Lia = broadcast(x -> in(x, b), a)
Locb = broadcast(x -> findfirst(b, x), a)
```

Any better ways?