snowhite v1.1.2 Snowhite.Helpers.Map View Source

Link to this section Summary

Functions

Appends to a list in a map.

Link to this section Functions

Specs

append(map(), atom(), any()) :: map()

Appends to a list in a map.

iex> append(%{}, :numbers, 1) %{numbers: [1]}

iex> append(%{numbers: [1]}, :numbers, 2) %{numbers: [1, 2]}