
31 Jul
2016
31 Jul
'16
1:53 p.m.
Beware: if you go with Either and combine Either ops with >>=, first Left result stops evaluation and returns 1st Left result. Right results continue evaluation. If this is expected, Either fits. If more ops are expected after 'update count' no-op (if Left stands for Frozen), then Either and >>= should not be used together. Algebraic type (Flex count | Frozen count) is also suitable. Let the calling functions decide how to process Frozen values. At least they'll know the difference.