simple-enumeration: Finite or countably infinite sequences of values.

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

Finite or countably infinite sequences of values, supporting efficient indexing and random sampling.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.2.1
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), integer-gmp [details]
License BSD-3-Clause
Copyright 2019 Brent Yorgey
Author Brent Yorgey
Maintainer byorgey@gmail.com
Category Data
Home page https://github.com/byorgey/enumeration#readme
Bug tracker https://github.com/byorgey/enumeration/issues
Source repo head: git clone https://github.com/byorgey/enumeration
Uploaded by BrentYorgey at 2020-06-25T19:49:57Z
Distributions NixOS:0.2.1
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 1857 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-06-25 [all 1 reports]

Readme for simple-enumeration-0.2.1

[back to package description]

CI

Lightweight, efficiently indexable enumerations

This package defines a type of enumerations, along with combinators for building and manipulating them. An enumeration is a finite or countably infinite sequence of values, represented as a function from an index to a value. Hence it is possible to work with even very large finite sets. Enumerations also naturally support (uniform) random sampling.

Note the goal of this package is not to enumerate values of Haskell types; there already exist many other packages to do that. Rather, the goal is simply to provide an abstract framework for working with enumerations of any values at all.

See the documentation for examples; see the announcement blog post for additional examples and discussion.