Portability | Portable (Cookbook) |
---|---|
Stability | Stable |
Maintainer | nathanpisarski@gmail.com |
Safe Haskell | Safe-Inferred |
Library for determining mathematically whether two lists are similar.
Documentation
frequency :: Eq a => [a] -> [(a, Int)]Source
Creates a list with the frequency of elements in a list.
mostFrequent :: Eq a => [a] -> Int -> [a]Source
Returns the x-amount of most frequent elements in a list. If there is a tie, the order it appears in a list takes precedence.