A.OrdMap.foldl

You're seeing just the function foldl, go back to A.OrdMap module for more information.
Link to this function

foldl(ord_map, acc, fun)

View Source

Folds (reduces) the given ord_map from the left with the function fun. Requires an accumulator acc.

Examples

iex> ord_map = A.OrdMap.new([b: "Bat", c: "Cat", a: "Ant"])
iex> A.OrdMap.foldl(ord_map, "", fn {_key, value}, acc -> value <> acc end)
"AntCatBat"
iex> A.OrdMap.foldl(ord_map, [], fn {key, value}, acc -> [{key, value <> "man"} | acc] end)
[a: "Antman", c: "Catman", b: "Batman"]