toolshed-0.12.0.0: Utilities used by other packages.

ToolShed.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.

Predicates

both :: (Bool, Bool) -> BoolSource

True if both halves of the Pair are.

neither :: (Bool, Bool) -> BoolSource

True if neither half of the Pair is.