Copyright | (c) roki 2019 |
---|---|
License | MIT |
Maintainer | falgon53@yahoo.co.jp |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
Utilities of tuple
Synopsis
- swap :: (a, b) -> (b, a)
- first3 :: (a -> d) -> (a, b, c) -> (d, b, c)
- second3 :: (b -> d) -> (a, b, c) -> (a, d, c)
- third3 :: (c -> d) -> (a, b, c) -> (a, b, d)
- dropFst3 :: (a, b, c) -> (b, c)
- dropSnd3 :: (a, b, c) -> (a, c)
- dropThd3 :: (a, b, c) -> (a, b)
- fst4 :: (a, b, c, d) -> a
- snd4 :: (a, b, c, d) -> b
- thd4 :: (a, b, c, d) -> c
- fou4 :: (a, b, c, d) -> d
- first4 :: (a -> e) -> (a, b, c, d) -> (e, b, c, d)
- second4 :: (b -> e) -> (a, b, c, d) -> (a, e, c, d)
- third4 :: (c -> e) -> (a, b, c, d) -> (a, b, e, d)
- fourth4 :: (d -> e) -> (a, b, c, d) -> (a, b, c, e)
- dropFst4 :: (a, b, c, d) -> (b, c, d)
- dropSnd4 :: (a, b, c, d) -> (a, c, d)
- dropThd4 :: (a, b, c, d) -> (a, b, d)
- dropFourth4 :: (a, b, c, d) -> (a, b, c)
- curry4 :: ((a, b, c, d) -> e) -> a -> b -> c -> d -> e
- uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
For double
For triples
For quadruple
dropFourth4 :: (a, b, c, d) -> (a, b, c) Source #
Drop fourth element of quadruple.