Here’s my take:
iex> [:a, :b, :c, :d, :e, :f] |> Enum.reverse() |> Enum.reduce([true], &([{&1, &2}]))
[a: [b: [c: [d: [e: [f: [true]]]]]]]
Here’s my take:
iex> [:a, :b, :c, :d, :e, :f] |> Enum.reverse() |> Enum.reduce([true], &([{&1, &2}]))
[a: [b: [c: [d: [e: [f: [true]]]]]]]