Replaced list.map with list.reduce in array/var!