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
Members of BOUNDED can always have a clamp function that enforces the top/bottom range
Members of BOUNDED can always have a function t => option(t) that ensures the value is in range
Members of BOUNDED can be wrapped forward or backward if they can be converted to/from a value that is a member of EUCLIDEAN_RING and ORD
I'm not sure how much of this is broadly useful, but it was useful for Hour, Minute, Second, etc, and it seems like it might be useful for any BOUNDED types that want to validate themselves.
The text was updated successfully, but these errors were encountered:
BOUNDED
can always have aclamp
function that enforces thetop
/bottom
rangeBOUNDED
can always have a functiont => option(t)
that ensures the value is in rangeBOUNDED
can be wrapped forward or backward if they can be converted to/from a value that is a member ofEUCLIDEAN_RING
andORD
I'm not sure how much of this is broadly useful, but it was useful for
Hour
,Minute
,Second
, etc, and it seems like it might be useful for anyBOUNDED
types that want to validate themselves.The text was updated successfully, but these errors were encountered: