keen/enums

Source
enum-like[t] spec t data
to nat8(a t)
to t option(a nat64)
members t[]()
assert-plain-enum[e] void() e enum-like
Asserts that the enum members are represented as 0 .. n . This will always be the case if member values are not specified.
prev-next enum
prev
next
walk[e] e option(a e, dir prev-next) e enum-like
The previous or next enum value in declaration order.
walk-cycle[e] e(a e, dir prev-next) e enum-like
Like walk, but the previous of the first value is the last value, and the next of the last value is the first value.
prev-cycle[e] e(a e) e enum-like
next-cycle[e] e(a e) e enum-like