How can we create a nested keyword list

Perhaps a bit :golf: ish, but I’ve never actually used foldr before, so I put this together :grin:

iex(40)> :lists.foldr(&[{&1, &2}], [true], [:a, :b, :c, :d, :e, :f])
[a: [b: [c: [d: [e: [f: [true]]]]]]]