Categories
Code Curated

Pattern matching in Ruby with Case

Wherein coolness is demonstrated

Pattern matching, ala Erlang or Haskell, is a language feature near and dear to my heart. Dean Wampler has a great explanation of how to use the Omnibus Concurrency Library to play with pattern matching in Ruby, even if it’s a little odd.

By Adam Keys

Telling a joke. Typing.