DarkMatter.PrefixLists.expand
You're seeing just the function
expand
, go back to DarkMatter.PrefixLists module for more information.
Specs
expand(atom_or_improper_prefix_list()) :: expanded_prefix_list()
Expanding prefix lists into a flattened concat representation.
Examples
iex> expand([]) []
iex> expand(:atom) [:atom]
iex> expand(keyword: :list) [:keyword_list]
iex> expand(nested: [[[[:list_of_lists]]]]) [:nested_list_of_lists]
iex> expand(a: [very: [nested: :list]]) [:a_very_nested_list]
iex> expand(two: [very: [nested: [:compound_atom, and: [nested: :list]]]]) [:two_very_nested_compound_atom, :two_very_nested_and_nested_list]
iex> expand(three: [very: [nested: [:compound_atom, [:list_atom], and: [nested: :list]]]]) [ :three_very_nested_compound_atom, :three_very_nested_list_atom, :three_very_nested_and_nested_list ]