toolshed-0.15.0.1: Utilities used by other packages.

Safe HaskellSafe-Inferred
LanguageHaskell98

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.