raft-0.3.7.2: Miscellaneous Haskell utilities for data structures and data manipulation.

Safe HaskellSafe
LanguageHaskell2010

Data.Function.Util

Contents

Description

Utilities related to Data.Function.

Synopsis

Constant boolean functions

always :: a -> Bool Source #

Always true.

never :: a -> Bool Source #

Always false.

Functions on second entries in pairs

sndNegater :: Num b => (a, b) -> (a, b) Source #

Negate the second entry in a pair.

sndCounter :: (a, [b]) -> (a, Int) Source #

Measure the length of the second entry in a pair.

sndSummer :: Num b => (a, [b]) -> (a, b) Source #

Sum the values of the second entry in a pair.