@hackage unfoldable1.1
Class of data structures that can be unfolded.
Installation
Tested Compilers
Dependencies (6)
- QuickCheck >=2.7.3 && <3
- base >=4 && <5
- containers >=0.6 && <0.9
- one-liner >=2 && <3
- random >=1 && <1.4
- transformers >=0.4 && <0.7 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.