`list.reduce{ a, b -> if (a==null || b==null) ...
# announcements
k
list.reduce{ a, b -> if (a==null || b==null)  null else a+b}?.let{it / list.size}