Enum.map_reduce([1, 2, 3, 4, 5], 0, fn(x, acc) -> {x, x + acc} end)