Bounded package:streamly-core
A location inside a mutable byte array with the bound of the array. Is
it cheaper to just get the bound using the size of the array whenever
needed?
enumerateFromThen for
Enum types not larger than
Int.
Note: We convert the
Enum to
Int and enumerate the
Int. If a type is bounded but does not have a
Bounded
instance then we can go on enumerating it beyond the legal values of
the type, resulting in the failure of
toEnum when converting
back to
Enum. Therefore we require a
Bounded instance
for this function to be safely used.
Enumerate from given starting Enum value from with stride of
1 till maxBound
Internal
Enumerate from given starting Enum value from and next Enum
value next with stride of (fromEnum next - fromEnum from)
till maxBound.
Internal