Skip to content

v0.48.0

Compare
Choose a tag to compare
@andywhite37 andywhite37 released this 31 Dec 21:53

✨ New

  • Added extension module functors for ENUM and BOUNDED_ENUM, inspired by purescript-enums
    • fromToAsList - generate a list of enum values from a start value to an end value
    • upFromAsList - generate a list of enum values starting from (but not including) a start value
    • upFromIncludingAsList - generate a list of enum values starting from (and including) a start value
    • downFromAsList - generate a list of enums down from (but not including) a start value
    • downFromIncludingAsList - generate a list of enums down from (and including) a start value
    • See https://github.com/reazen/relude/blob/master/__tests__/extensions/Relude_Extensions_Enum_test.re for example usage