I guess, this is more practical, though is not aca...
# stdlib
b
I guess, this is more practical, though is not academic: 😉
Copy code
val map = mutableMapOf<String, Double>().apply {
    for ((first, second) in list) if (second != null) this[first] = second
}