r-k-b/map-accumulate/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

mapAccumulate

"Map Accumulate" helpers for Elm.

Useful if you want to modify items in two lists, each based on everything in the other list. For example, bullets hitting targets - we check which bullets have collided with which targets, and for each collision we modify (or remove) the bullet and modify (or remove) the target.