packages feed

descript-lang-0.2.0.0: src/Core/Data/Tuple.hs

module Core.Data.Tuple
  ( mapAll
  ) where

-- | Transforms both items in a 2-tuple.
mapAll :: (a -> b) -> (a, a) -> (b, b)
mapAll f (x, y) = (f x, f y)