elem()
elem<
A>(E): (a) => <Err>(ma) =>boolean
Tests if a value is equal to the Right value using an Eq instance.
Type Parametersβ
A: Aβ
The success type.
Parametersβ
E: #### equals: (a, b) => booleanβ
The Eq instance.
Returnsβ
A curried function that tests equality.
Type Parametersβ
Err: Errβ
ma:
Either<Err, A>
Returns:boolean
Sinceβ
2.0.0