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