View Source BubbleLib.MapUtil (bubble_lib v1.6.2)

Map utility functions

Link to this section Summary

Functions

Recursively run a mapper function on the 'leaf nodes' of the given nested term.

Link to this section Functions

Link to this function

deep_keyword_to_map(value)

View Source
Link to this function

map_leafs(value, mapper)

View Source
@spec map_leafs(term(), (term() -> term())) :: term()

Recursively run a mapper function on the 'leaf nodes' of the given nested term.

Leaf nodes are any term that are not a list or a map. Tuples and structs are also considered leaf nodes!