Use asSequence map average
# stdlib
v
Use asSequence map average