Maintainer | dneavesdev@pm.me |
---|---|
Safe Haskell | Safe |
Language | GHC2021 |
Antelude.Tuple.Trio
Description
Synopsis
- type Trio a b c = (a, b, c)
- curry :: ((a, b, c) -> d) -> a -> b -> c -> d
- cycleCCW :: Trio a b c -> Trio b c a
- cycleCW :: Trio a b c -> Trio c a b
- first :: Trio a b c -> a
- mapFirst :: (a -> z) -> Trio a b c -> Trio z b c
- mapSecond :: (b -> z) -> Trio a b c -> Trio a z c
- mapThird :: (c -> z) -> Trio a b c -> Trio a b z
- pack :: a -> b -> c -> Trio a b c
- reverse :: Trio a b c -> Trio c b a
- second :: Trio a b c -> b
- third :: Trio a b c -> c
- uncurry :: (a -> b -> c -> d) -> (a, b, c) -> d
Documentation
curry :: ((a, b, c) -> d) -> a -> b -> c -> d Source #
convert an uncurried function into a curried function
cycleCCW :: Trio a b c -> Trio b c a Source #
Rotates the item of a Trio
Tuple, moving to the left.
The first item loops back to the last
cycleCW :: Trio a b c -> Trio c a b Source #
Rotates the item of a Trio
Tuple, moving to the right.
The last item loops back to the first
mapFirst :: (a -> z) -> Trio a b c -> Trio z b c Source #
Apply a function to the first item of a Trio
Tuple
mapSecond :: (b -> z) -> Trio a b c -> Trio a z c Source #
Apply a function to the second item of a Trio
Tuple
mapThird :: (c -> z) -> Trio a b c -> Trio a b z Source #
Apply a function to the third item of a Trio
Tuple