Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Functions for manipulating tuples, supplementing Data.Tuple.
- ($$) :: Monad ((->) a) => (a -> b, a -> c) -> a -> (b, c)
- curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d
- uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d
- fst3 :: (a, b, c) -> a
- snd3 :: (a, b, c) -> b
- trd3 :: (a, b, c) -> c
- first3 :: Arrow a => a b c -> a (b, d, e) (c, d, e)
- second3 :: Arrow a => a b c -> a (d, b, e) (d, c, e)
- third3 :: Arrow a => a b c -> a (d, e, b) (d, e, c)
- curry4 :: ((a, b, c, d) -> e) -> a -> b -> c -> d -> e
- uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
- fst4 :: (a, b, c, d) -> a
- snd4 :: (a, b, c, d) -> b
- trd4 :: (a, b, c, d) -> c
- fth4 :: (a, b, c, d) -> d
- first4 :: Arrow a => a b c -> a (b, d, e, f) (c, d, e, f)
- second4 :: Arrow a => a b c -> a (d, b, e, f) (d, c, e, f)
- third4 :: Arrow a => a b c -> a (d, e, b, f) (d, e, c, f)
- fourth4 :: Arrow a => a b c -> a (d, e, f, b) (d, e, f, c)
Functions on pairs.
($$) :: Monad ((->) a) => (a -> b, a -> c) -> a -> (b, c) Source #
Apply a pair of functions to a value.
Functions on triplets.
first3 :: Arrow a => a b c -> a (b, d, e) (c, d, e) Source #
Send the first component of the input through the argument arrow, and copy the rest unchanged to the output.
second3 :: Arrow a => a b c -> a (d, b, e) (d, c, e) Source #
Send the second component of the input through the argument arrow, and copy the rest unchanged to the output.
third3 :: Arrow a => a b c -> a (d, e, b) (d, e, c) Source #
Send the third component of the input through the argument arrow, and copy the rest unchanged to the output.
Functions on quadruplets.
first4 :: Arrow a => a b c -> a (b, d, e, f) (c, d, e, f) Source #
Send the first component of the input through the argument arrow, and copy the rest unchanged to the output.
second4 :: Arrow a => a b c -> a (d, b, e, f) (d, c, e, f) Source #
Send the second component of the input through the argument arrow, and copy the rest unchanged to the output.