View difference between Paste ID: dpB9jvSC and 8SmJcYus
SHOW: | | - or go back to the newest paste.
1
hs = Enum.filter(rooster, fn(x)->x[:shots]!=nil end)
2
hs = Enum.map(hs, fn(x)->x[:shots] end)
3-
hsEnum.reduce(hs, fn(x,y)->x+y end)
3+
hs = Enum.reduce(hs, fn(x,y)->x+y end)