BSD-3-Clause licensed by James Cranch
Maintained by [email protected]
This version can be pinned in stack with:mappings-0.1.0.0@sha256:3bf2c1ad0be75eca69d70b2c609e427f243b3bcbfcb8fc87898a53e90986058e,2457
Used by 1 package in nightly-2023-11-28(full list with versions):

Mappings

What’s it do?

This package does two jobs:

  • It offers a general typeclass Mapping for types which represent functions k -> v (for fixed k, but arbitrary ordered v).

    There are some fairly straightforward examples which build up mappings where k is Either, or a pair, or Maybe, or Bool.

  • Three less trivial implementations are provided:

Why did I bother?

The aim is to use decision diagrams with nodes that are piecewise constant maps to store monomials for Grobner basis algorithms.

Changes

[0.1.0.0] - 2023-11-09

  • baseLength and decisionLength functions
  • rewritten the counting functions

[0.0.1.0] - 2023-11-05

Initial version