haskpy.typeclasses.apply

Apply typeclass

The name of the module is apply_ instead of apply in order to avoid name clashing with the function apply.

Apply

Apply typeclass

apply(f, x)

Apply f => f (a -> b) -> f a -> f b

apply_first(x, y)

Apply f => f a -> f b -> f a

apply_second(x, y)

Apply f => f a -> f b -> f b

lift2(f, a, b)

Apply f => (a -> b -> c) -> f a -> f b -> f c

lift3(f, a, b, c)

lift4(f, a, b, c, d)

lift5(f, a, b, c, d, e)