RMap.Support (REnum v0.8.0)

Summarized other useful functions related to Lit. Defines all of here functions when use RMap.Support.

Link to this section Summary

Functions

Returns list recursively converted  from given map to list.

Link to this section Functions

Link to this function

deep_to_list(map)

Specs

deep_to_list(map()) :: list()

Returns list recursively converted  from given map to list.

Examples

iex> RMap.deep_to_list(%{a: 1, b: %{c: 2, d: {1, 2}, e: [1, 2]}})
[[:a, 1], [:b, [[:c, 2], [:d, [1, 2]], [:e, [1, 2]]]]]