2017-05-15 22:10:13 +00:00
|
|
|
{- tuple utility functions
|
|
|
|
-
|
|
|
|
- Copyright 2017 Joey Hess <id@joeyh.name>
|
|
|
|
-
|
|
|
|
- License: BSD-2-clause
|
|
|
|
-}
|
|
|
|
|
2017-05-16 03:32:17 +00:00
|
|
|
module Utility.Tuple where
|
|
|
|
|
2017-05-15 22:10:13 +00:00
|
|
|
fst3 :: (a,b,c) -> a
|
2017-05-16 03:32:17 +00:00
|
|
|
fst3 (a,_,_) = a
|
2017-05-15 22:10:13 +00:00
|
|
|
|
|
|
|
snd3 :: (a,b,c) -> b
|
2017-05-16 03:32:17 +00:00
|
|
|
snd3 (_,b,_) = b
|
2017-05-15 22:10:13 +00:00
|
|
|
|
|
|
|
thd3 :: (a,b,c) -> c
|
2017-05-16 03:32:17 +00:00
|
|
|
thd3 (_,_,c) = c
|