smartGroup-0.2.1: group strings by words in common

SmartGroup

Synopsis

Documentation

groupAll :: (Ord a, Splittable s) => Int -> (a -> s) -> [a] -> [[a]]Source

Divide list into as many groups as possible

groupNum :: (Ord a, Splittable s) => Int -> Int -> (a -> s) -> [a] -> [[a]]Source

Divide list into about n different groups

groupLog :: (Ord a, Splittable s) => Int -> (a -> s) -> [a] -> [[a]]Source

Divide list into groups such that the amount of groups equals the log of the number of elements