Name: Anonymous 2015-07-08 17:53
Rules:
✡ must compute arithmetic average of a list
✡ only one pass is allowed
✡ constant memory
✡ must compute arithmetic average of a list
✡ only one pass is allowed
✡ constant memory
(\(y,s) -> y`div`s)) . foldl' (\(tot,len) x -> (tot+x,len+1)) (0,0)