require "patternmatching" include PatternMatching # Example for matching Enumerable inputs = build { exact([1,2,3,4,5]) } make inputs do # _! matches rests of list seems as {exact([:a,:b, _!(:c)])} do puts a.to_s + ", " + b.to_s + " and " + c.join(", ") end seems something do puts "not matched" end end # => "1, 2, and 3, 4, 5"