Popularity
3.8
Growing
Activity
0.0
Stable
4
1
2

Monthly Downloads: 37
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Data Structures    

flux-monoid alternatives and similar packages

Based on the "Data Structures" category

Do you think we are missing an alternative of flux-monoid or a related project?

Add another 'Data Structures' Package

README

flux-monoid

Flux is a monoid which counts the number of times an element changes (according to its Eq instance) This is useful for gaining associativity (and its associated performance improvements) for tasks where you'd otherwise use group or groupBy

It also allows usage of change-detection semantics in situations where a Monoid is required; e.g. in a FingerTree

> getFlux $ foldMap flux ["a", "b", "b", "a"]
2
> getFlux $ foldMap flux ["a", "b", "b", "a", "c", "c", "c"]
3