4 ms·
Good point, well there's Ordering type built-in in Haskell (LT | EQ | GT). Ordering -> bool has 2^3=8 values (const true, const false, == LT, == EQ, == GT, is_l
by ackfoobar 1y ago
Good point, well there's Ordering type built-in in Haskell (LT | EQ | GT). Ordering -> bool has 2^3=8 values (const true, const false, == LT, == EQ, == GT, is_lte, is_gte, ne)
EDIT: now you see why I used the smallest type possible to make my point. Exponentials get big FAST (duh).
- jolmg 1y ago> now you see why I used the smallest type possible I think the length's worth it for the sake of a crystal clear enumeration.