iteraptor v0.1.0 Iteraptor
Summary
Functions
iex> [:a, 42] |> Iteraptor.to_flatmap %{“0”: :a, “1”: 42}
Functions
iex> [:a, 42] |> Iteraptor.to_flatmap %{“0”: :a, “1”: 42}
iex> %{a: 42} |> Iteraptor.to_flatmap %{a: 42}
iex> %{a: 42, b: 42} |> Iteraptor.to_flatmap %{a: 42, b: 42}
iex> %{a: %{b: 42}, d: 42} |> Iteraptor.to_flatmap %{“a.b”: 42, d: 42}
iex> %{a: [:b, 42], d: 42} |> Iteraptor.to_flatmap %{“a.0”: :b, “a.1”: 42, d: 42}
iex> %{a: %{b: [:c, 42]}, d: 42} |> Iteraptor.to_flatmap %{“a.b.0”: :c, “a.b.1”: 42, d: 42}
iex> %{a: %{b: 42}} |> Iteraptor.to_flatmap %{“a.b”: 42}
iex> %{a: %{b: %{c: 42}}} |> Iteraptor.to_flatmap %{“a.b.c”: 42}
iex> %{a: %{b: %{c: 42}}, d: 42} |> Iteraptor.to_flatmap %{“a.b.c”: 42, d: 42}
iex> %{a: %{b: %{c: 42, d: [nil, 42]}, e: [:f, 42]}} |> Iteraptor.to_flatmap %{“a.b.c”: 42, “a.b.d.0”: nil, “a.b.d.1”: 42, “a.e.0”: :f, “a.e.1”: 42}