cifl-math-library-1.1.1.0: Math libraries
Safe HaskellSafe
LanguageHaskell2010

Math.Tools.Functor

Documentation

class BiFunctor op where Source #

Methods

bimap :: (a -> b) -> (c -> d) -> op a c -> op b d Source #

class Functor f => InterleaveFunctor f where Source #

Methods

interleave :: f a -> f a -> f a infixr 8 Source #

Instances

Instances details
InterleaveFunctor Stream Source # 
Instance details

Defined in Math.Number.Stream

Methods

interleave :: Stream a -> Stream a -> Stream a Source #

InterleaveFunctor Queue Source # 
Instance details

Defined in Math.Tools.Queue

Methods

interleave :: Queue a -> Queue a -> Queue a Source #

InterleaveFunctor List Source # 
Instance details

Defined in Math.Tools.List

Methods

interleave :: [a] -> [a] -> [a] Source #

funzip :: Functor f => f (a, b) -> (f a, f b) Source #

fst3 :: (a, b, c) -> a Source #

snd3 :: (a, b, c) -> b Source #

thrd3 :: (a, b, c) -> c Source #

funzip3 :: Functor f => f (a, b, c) -> (f a, f b, f c) Source #

unzipWith :: Functor f => (a -> (b, c)) -> f a -> (f b, f c) Source #

fzipWith3 :: Applicative f => (a -> b -> c -> d) -> f a -> f b -> f c -> f d Source #

fzip :: Applicative f => f a -> f b -> f (a, b) Source #

(<&>) :: Applicative f => f a -> f b -> f (a, b) infixl 8 Source #

fzip3 :: Applicative f => f a -> f b -> f c -> f (a, b, c) Source #

fzip4 :: Applicative f => f a -> f b -> f c -> f d -> f (a, b, c, d) Source #

liftA4 :: Applicative f => (a -> b -> c -> d -> e) -> f a -> f b -> f c -> f d -> f e Source #