Monthly Archives: April 2012
Quickfix to Expand Case-Class Bindings in Pattern Matching
When writing Scala code that involves pattern matching I often work with (nested) case classes and sequences of case classes. I usually start with a simple binding like this and then when I need to access members of the matched class convert it to use the extractor: What’s tedious about that step is that one […]