104
The E Function: Membership
'CD
Monadic (One-Argument) Form
There
is
no monadic form.
Dyadic (Two-Argument) Form: Membership
A€B
The membership function result
is
a 1 for each element of argument A
that
can be
found among
the
elements
of
argument 8 and a 0 for every element
that
cannot be
found. The shape of the result
is
the same
as
the shape of argument
A.
Arguments A and 8 can be any scalar, vector,
or
array:
l~.Z
j,
2
3
'+
.::-
••
1
j,
1.5.::l.
t)
..:..
3
1+
5
0
'A'~'BANNA'
1
'AHC'~'BANANA'
1
1
0
At-2
2pl
~~
1:,.-
.J
'7
Bt-4
Lf·p12
4t::·
...
1
78
,~
1
3
~)
7
B
1':>
....
4·~5
7B
:1.2
I+~;
"?B
:1.
~?
4
1
::-
••
1
78
:1.2
4·~:;
78
:1.2
'+5
7B
:1.2
A~B
0 0
() ()
Bt-I+
'4·?)
:I.
2
4
I::'
,J
7
B
A
1.
3
~'5
7
B
1 2 4 5
'7
B
1.
2
'+
1::'
J 7
8
:I.
2
4-
S
A.::B
1-
0
t
:I.