`list.removeAll { it == null }`?
# getting-started
p
list.removeAll { it == null }
?