Multi-way if

The MultiWayIf GHC extension introduces a kind of if expression that allows more than two branches, using the same syntax as pattern guards.

Type Classes offers courses and projects to get you started and make you an expert in FP with Haskell. For $29/month, you get access to the complete archive and all the latest content.