Documentation
clusterBy :: Ord b => (a -> b) -> [a] -> [[a]]Source
Group list into indevidual pairs: [1,2,3,4] => [(1,2),(3,4)]. Works only with even number of elements
Undo pairs function
Group list into pairs: [1,2,3] => [(1,2),(2,3)]. Works with non null lists
Undo pairs1 function
schwartzianTransform :: (Ord a, Ord b) => (a -> b) -> [a] -> [a]Source