TOML.Utils.NonEmpty
zipHistory :: NonEmpty a -> NonEmpty (NonEmpty a, a) Source #
Annotates each element with the history of all past elements.
>>> zipHistory ["a", "b", "c"] [(["a"], "a"), (["a", "b"], "b"), (["a", "b", "c"], "c")]
>>>
zipHistory ["a", "b", "c"]