I don’t quite like an idea of solving normal software engineering issues by trying to apply some magic, even if Kotlin magic simple smile If you have a non-trivial condition that you want to reuse, there are plenty of methods of doing so, e.g. extract a function.