@hackage unfoldable0.9.2
Class of data structures that can be unfolded.
Installation
Dependencies (7)
- QuickCheck >=2.7.3 && <2.10
- base >=4 && <5
- containers >=0.5 && <0.6
- ghc-prim >=0.2
- one-liner >=0.7 && <0.9
- random >=1.0 && <1.2 Show all…
Dependents (2)
@hackage/acme-everything, @hackage/unfoldable-restricted
Just as there's a Foldable class, there should also be an Unfoldable class.
This package provides one. Example unfolds are:
Random values
Enumeration of all values (depth-first or breadth-first)
Convert from a list
Some examples can be found in the examples directory.