6 ms·
If-then-else is pattern matching on a value of type Bool. I think of general pattern matching on algebraic data types as a generalization.
by alew1 6y ago
If-then-else is pattern matching on a value of type Bool. I think of general pattern matching on algebraic data types as a generalization.