2.33, implementing map, append, and length using accumulate