Cumulative product?

It is called… cumprod

julia> cumprod([2, 2, 2, 5])
4-element Vector{Int64}:
  2
  4
  8
 40
2 Likes