rosso-1.0: General purpose utility library

Data.Tuple.Rosso1

Description

Extends Data.Tuple

Synopsis

Documentation

module Data.Tuple

mapFst :: (a -> c) -> (a, b) -> (c, b)Source

Applies a function to the first component of a pair.

mapSnd :: (b -> c) -> (a, b) -> (a, c)Source

Applies a function to the second component of a pair.

pairApply :: (a -> c) -> (b -> d) -> (a, b) -> (c, d)Source

Applies a pair of functions to a pair of values.