@hackage symmetric-properties0.1.0.1

Monoids for sameness and uniqueness.

Test whether every element of a Foldable is the Same or Unique.

> allSame (replicate 1000 1)
True
> allSame [1..]
False
> allUnique [1..1000]
True
> allUnique (cycle [1..100])
False