3 ms·Languages with sum types, like Haskell and Rust, make these things trivial.by freeone3000 2y agoLanguages with sum types, like Haskell and Rust, make these things trivial.