Skip to content

toEnum modulo Cardinality a #40

Open
@marcosh

Description

@marcosh

Given a BoundedEnum a, it would be nice to have a function

toEnumModulo :: Int -> a

which would reduce the input modulo Cardinality a and then retrieve the element in the enum, being safe that it will remain in the defined buondary

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs more infoThis issue needs more info before any action can be done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions