Equations
Equations
- Aesop.UnionFind.addArray xs u = Array.foldl (fun (u : Aesop.UnionFind α) (x : α) => Aesop.UnionFind.add x u) u xs
Instances For
Equations
Instances For
def
Aesop.cluster
{α : Type (max u_1 u_2)}
{β : Type u_2}
[BEq α]
[Hashable α]
[BEq β]
[Hashable β]
(f : α → Array β)
(as : Array α)
:
Cluster the as according to which bs are associated to them by f. Two
members a₁, a₂ of as are put in the same cluster iff f a₁ ∩ f a₂ ≠ ∅.
Equations
- One or more equations did not get rendered due to their size.