You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would make my life easier is an enumerator of all the possible values (bit permutations) that the value of a typerepr can take.
This would look like deriving's enum and repr's random.
The enumerator could take the form of an OCaml sequence to deal with the fact that the user may be requesting an enumeration on something of almost infinite size (e.g. an int64).
Agreed. I've thought about writing one of these a few times, but haven't yet got around to it.
I think there's also a good use-case for having a deriver that goes straight to 'a list and works only for finite types, so that the generation work can be done at initialisation time. (I believe the JS convention for the finite enumeration is all, as you've written.)
What would make my life easier is an enumerator of all the possible values (bit permutations) that the value of a typerepr can take.
This would look like deriving's enum and repr's random.
The enumerator could take the form of an OCaml sequence to deal with the fact that the user may be requesting an enumeration on something of almost infinite size (e.g. an int64).
My (simplified) use case, where such a feature would be greatly appreciated:
The text was updated successfully, but these errors were encountered: