caldims-0.1.0: Calculation tool and library supporting units

Language.CalDims.Helpers

Documentation

headWithDefault :: a -> [a] -> aSource

again :: Monad m => (a -> m b) -> [a] -> m ()Source

third :: (a, b, c) -> cSource

logBaseInt :: Integral a => a -> a -> Maybe aSource

(#&&#) :: Monad m => m Bool -> m Bool -> m BoolSource

combination :: Int -> [a] -> [[a]]Source

permutation :: Int -> [a] -> [[a]]Source

if_ :: Bool -> a -> a -> aSource

type ErrorAndState e s a = ErrorT e (State s) aSource

eqClassesWith :: (a -> a -> Bool) -> [a] -> [(a, [a])]Source