Module

Data.Functor.Invariant

Package
purescript-invariant
Repository
purescript/purescript-invariant

#imapF Source

imapF :: forall f a b. Functor f => (a -> b) -> (b -> a) -> f a -> f b

As all Functors are also trivially Invariant, this function can be used as the imap implementation for any types that has an existing Functor instance.