Comment Comment by involans This is pattern matching. Support for this exists in Haskell, Scala, and now even Ruby and soon Python. parent involans 5 years ago