haskpy.typeclasses.equality.eq

eq(x, y)[source]

Equality: Eq a => a -> a -> Bool

Note that one can use == operator instead of this function. But operators cannot be partially applied in Python, so for that usecase this function can be useful.

>>> from haskpy import List, map
>>> map(eq(42), List(1, 2, 42, 666, 42)
List(False, False, True, False, True)