dmitry.petrov
when { v1 is SomeKindOfValue && v2 is SomeOtherKindOfValue -> // destructure v1 & v2, do some further matching // ... }