dmitry.petrov
06/28/2017, 6:50 AMCompiler should be smart enough to understand the lambda values areNo. Lambda in, no?Boolean
listOf(true, null, false, true).mapNotNull { !it } takes list elements (which are Boolean?).
Meaning of mapNotNull is not "skip null elements in the original container", but "skip null elements in the resulting container".