Pattern Matching syntax comparison in Scala, Haskell, ML and OCaml
After writing my last post about Pattern matching in Scala, I was curious about how pattern matching was solved in other languages. So in this post, I'll use the examples from the last blog post to compare how this would be solved in Scala, Haskell, ML and OCaml. List example…