@pakoito Unlike ML, Kotlin doesn't have full-blown pattern matching.
So there's little use for introducing temporary variables via patterns (there's no real patterns, just some funky flow typing).
However, there's
https://youtrack.jetbrains.com/issue/KT-4895, which is somewhat close.