toolshed-0.17.0.2: Ill-defined library.

Safe HaskellSafe
LanguageHaskell2010

ToolShed.Data.Pair

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Miscellaneous operations on Pairs.

Synopsis

Functions

mirror :: (a -> b) -> (a, a) -> (b, b) Source #

  • Apply the same transformation to both halves of a Pair.
  • CAVEAT: even though the function may be polymorphic, the pair is required to have identical types.