toolshed-0.15.0.0: Utilities used by other packages.

Safe HaskellSafe-Inferred

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: the pair is required to have identical types.