New answers tagged

8 votes
Accepted

Accumulate[] on an ordered HashTable

You could do something like this: Module[{acc = 0}, Map[acc += # &, oht]] (* <|a -> 1.224, b -> 2.32, c -> 4.206|> *) but this will not be the ...
user avatar

Top 50 recent answers are included