ExMicrosoftAzureStorage.Storage.Utilities.add_to

You're seeing just the function add_to, go back to ExMicrosoftAzureStorage.Storage.Utilities module for more information.

Adds a value to a list, which is a value in a dictionary.

Examples

iex> %{foo: nil} |> ExMicrosoftAzureStorage.Storage.Utilities.add_to(:foo, :a)
%{foo: [:a]}

iex> %{foo: [:a]} |> ExMicrosoftAzureStorage.Storage.Utilities.add_to(:foo, :b)
%{foo: [:b, :a]}

iex> %{foo: [:a]} |> ExMicrosoftAzureStorage.Storage.Utilities.add_to(:foo, :b) |> ExMicrosoftAzureStorage.Storage.Utilities.add_to(:foo, :c)
%{foo: [:c, :b, :a]}