Portability | portable |
---|---|
Stability | Unstable |
Maintainer | ualinuxcn@gmail.com |
Safe Haskell | Safe-Inferred |
Library provides functions to find unique and duplicate elements in the list. Unlike Data.List.Unique this one uses Data.Map.Strict for calculations. So it's much faster and it uses less memory.
Documentation
repeatedBy :: Ord a => (Int -> Bool) -> [a] -> [a]Source
The repeatedBy
function behaves just like repeated, except it uses a user-supplied equality predicate.
repeatedBy (>2) This is the test line == eist