3 ms·
The example is not just destructuring though. It's actually matching against a data constructor and in another branch binding a name to a value. Those are class
by yawaramin 6y ago
The example is not just destructuring though. It's actually matching against a data constructor and in another branch binding a name to a value. Those are classic hallmarks of pattern matching.