Warpath.Element.Path.accumulate

You're seeing just the function accumulate, go back to Warpath.Element.Path module for more information.

Specs

accumulate(token(), acc()) :: acc()

Accumulate a path token into a path acc.

Example

iex> acc = [{:root, "$"}]
...> Warpath.Element.Path.accumulate({:property, "name"}, acc)
[{:property, "name"}, {:root, "$"}]