You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to create a Transducer that works like Base.accumulate where each element is passed into a function along with the result of the previous call.
For example:
> A = [1,2,3,4]
> A |>MapAccumulate(*; init=1) |> collect
# [1, 2, 6, 24]
I'm relatively new to the vernacular of functional programming, so it's quite possible I'm overlooking a function that provides this functionality already. But if not, it would be great to have!
The text was updated successfully, but these errors were encountered:
I'd like to create a Transducer that works like
Base.accumulate
where each element is passed into a function along with the result of the previous call.For example:
I'm relatively new to the vernacular of functional programming, so it's quite possible I'm overlooking a function that provides this functionality already. But if not, it would be great to have!
The text was updated successfully, but these errors were encountered: