Safe Haskell | Safe-Infered |
---|

- pairs :: [t] -> [(t, t)]
- fromPairs :: [(a, a)] -> [a]
- prop_pairsFromTo :: Eq a => [a] -> Property
- pairs1 :: [b] -> [(b, b)]
- fromPairs1 :: [(a, a)] -> [a]
- prop_pairsFromTo1 :: Eq a => [a] -> Property
- crease :: (b1 -> b1 -> b) -> [b1] -> [b]
- creaseM :: Monad m => (b -> b -> m a) -> [b] -> m [a]
- ranks :: (Enum b, Num b) => (b1 -> b1 -> Ordering) -> [b1] -> [b]
- rankBy :: (Enum t, Num t) => (b -> b -> Ordering) -> [b] -> [(t, b)]
- clusterBy :: Ord b => (a -> b) -> [a] -> [[a]]
- groupItems :: Ord a => (b -> a) -> (b -> b1) -> [b] -> [(a, [b1])]
- lookupDef :: Eq a1 => a -> a1 -> [(a1, a)] -> a
- pairings :: [t] -> [(t, t)]
- forEach :: (a -> a) -> [a] -> [[a]]
- forPairs :: (b -> b1 -> b) -> [b] -> [b1] -> [[b]]
- replicateList :: Int -> [a] -> [a]
- concatZipNub :: Eq a => [a] -> [a] -> [a]
- histogram :: (Num t, RealFrac a) => a -> [a] -> [(a, t)]
- binList :: Integral a => a -> ([b] -> b1) -> [(a, b)] -> [(a, b1)]
- zeroMean :: Fractional b => [b] -> [b]
- takeNAccordingTo :: Ord a => Int -> ([a], [b]) -> [(a, b)]
- select :: (c -> c -> Bool) -> [c] -> [c] -> [c]
- takeHalf :: [a] -> [a]
- splitToNParts :: Int -> [a] -> [[a]]
- prop_splitEq :: Eq a => Int -> [a] -> Property
- prop_splitLen :: Int -> [a] -> Property
- count :: Num a => (b -> Bool) -> [b] -> a
- frequencies :: (Num t, Ord b) => [b] -> [(b, t)]
- normalizeFrequencies :: Fractional t1 => [(t, t1)] -> [(t, t1)]
- average :: Fractional b => [b] -> b
- smallestBy :: (a -> a -> Ordering) -> Int -> [a] -> [a]
- smallestBy' :: (a -> a -> Ordering) -> Int -> [a] -> [a] -> [a]
- median :: (Fractional a, Ord a) => [a] -> a
- takeTail :: Int -> [a] -> [a]
- stdDev :: Floating b => [b] -> b
- cumulate :: Num a => [a] -> [a]
- schwartzianTransform :: (Ord a, Ord b) => (a -> b) -> [a] -> [a]
- sortVia :: Ord a => (b -> a) -> [b] -> [b]
- comparing :: Ord a => (t -> a) -> t -> t -> Ordering
- majority :: Ord a => [a] -> a
- getKNeighbourhoods :: Int -> [a] -> [[a]]
- prop_headIdentical_KN :: Eq b => Int -> [b] -> Property
- splitToLength :: Int -> [a] -> [[a]]
- takeLengths :: [Int] -> [a] -> [[a]]
- prop_takeLen :: [Int] -> [a] -> Property
- prop_takeLens :: [Int] -> [a] -> Property
- splitBy :: (a -> Bool) -> [a] -> [[a]]
- splitBetween :: (a -> a -> Bool) -> [a] -> [a] -> [[a]]
- tear :: (a -> Bool) -> [a] -> ([a], [a])
- swapEverywhere :: [a] -> [a] -> [[a]]
- takeWhile2 :: (a -> a -> Bool) -> [a] -> [a]
- applyMap :: t -> [t -> b] -> [b]
- applyMapM :: Monad m => a -> [a -> m b] -> m [b]
- changesM :: Monad m => [a -> m b] -> a -> m [b]
- rollList :: [a] -> [a]
- roll :: [a] -> [a]
- mergeList :: [a] -> [a] -> [a]
- takeWhile1 :: (a -> Bool) -> [a] -> [a]
- editingMap :: ([t] -> t -> t) -> [t] -> [t]
- editingTrav :: ([t] -> t -> t) -> [t] -> [t] -> [t]
- rotate :: [a] -> [a]
- cycles :: [a] -> [[a]]

# Documentation

pairs :: [t] -> [(t, t)]Source

Group list into indevidual pairs: [1,2,3,4] => [(1,2),(3,4)]. Works only with even number of elements

prop_pairsFromTo :: Eq a => [a] -> PropertySource

pairs1 :: [b] -> [(b, b)]Source

Group list into pairs: [1,2,3] => [(1,2),(2,3)]. Works with non null lists

fromPairs1 :: [(a, a)] -> [a]Source

Undo pairs1 function

prop_pairsFromTo1 :: Eq a => [a] -> PropertySource

groupItems :: Ord a => (b -> a) -> (b -> b1) -> [b] -> [(a, [b1])]Source

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

concatZipNub :: Eq a => [a] -> [a] -> [a]Source

zeroMean :: Fractional b => [b] -> [b]Source

takeNAccordingTo :: Ord a => Int -> ([a], [b]) -> [(a, b)]Source

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

prop_splitEq :: Eq a => Int -> [a] -> PropertySource

prop_splitLen :: Int -> [a] -> PropertySource

frequencies :: (Num t, Ord b) => [b] -> [(b, t)]Source

normalizeFrequencies :: Fractional t1 => [(t, t1)] -> [(t, t1)]Source

average :: Fractional b => [b] -> bSource

smallestBy :: (a -> a -> Ordering) -> Int -> [a] -> [a]Source

smallestBy' :: (a -> a -> Ordering) -> Int -> [a] -> [a] -> [a]Source

median :: (Fractional a, Ord a) => [a] -> aSource

schwartzianTransform :: (Ord a, Ord b) => (a -> b) -> [a] -> [a]Source

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

prop_headIdentical_KN :: Eq b => Int -> [b] -> PropertySource

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

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

prop_takeLen :: [Int] -> [a] -> PropertySource

prop_takeLens :: [Int] -> [a] -> PropertySource

splitBetween :: (a -> a -> Bool) -> [a] -> [a] -> [[a]]Source

swapEverywhere :: [a] -> [a] -> [[a]]Source

takeWhile2 :: (a -> a -> Bool) -> [a] -> [a]Source

takeWhile1 :: (a -> Bool) -> [a] -> [a]Source

editingMap :: ([t] -> t -> t) -> [t] -> [t]Source

editingTrav :: ([t] -> t -> t) -> [t] -> [t] -> [t]Source