Safe Haskell | None |
---|---|
Language | Haskell98 |
Agda.Utils.Cluster
Description
Create clusters of non-overlapping things.
Documentation
cluster :: forall a. (a -> (C, [C])) -> [a] -> [[a]]
Given a function f :: a -> (C,[C])
which returns a non-empty list of
characteristics C
of a
, partition a list of a
s into groups
that share at least one characteristics.
cluster' :: forall a. [(a, (C, [C]))] -> [[a]]
Partition a list of a
s paired with a non-empty list of
characteristics $C$ into groups that share at least one
characteristics.