Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runs :: Eq a => [(a, b)] -> [[b]]
- groupNum :: [[k]] -> [(k, Int)]
- bdiscNat :: Int -> ([v] -> v -> [v]) -> [(Int, v)] -> [[v]]
- updateBag :: [Int] -> Int -> [Int]
- updateSet :: [Int] -> Int -> [Int]
- spanEither :: ([a] -> [b] -> c) -> [Either a b] -> c
- integerCases :: Integer -> Either (Int, [Word]) (Either Int (Int, [Word]))
- naturalCases :: Natural -> Either Word (Int, [Word])
Documentation
spanEither :: ([a] -> [b] -> c) -> [Either a b] -> c Source #
Optimized and CPS'd version of partitionEithers
, where all lefts are known to come before all rights