We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
toEnum
Cardinality a
Given a BoundedEnum a, it would be nice to have a function
BoundedEnum a
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