- class Ord a => Splittable a where
- wordsOf :: a -> [a]

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

# Documentation

class Ord a => Splittable a whereSource

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