Perhaps a bit
ish, but I’ve never actually used foldr before, so I put this together ![]()
iex(40)> :lists.foldr(&[{&1, &2}], [true], [:a, :b, :c, :d, :e, :f])
[a: [b: [c: [d: [e: [f: [true]]]]]]]
Perhaps a bit
ish, but I’ve never actually used foldr before, so I put this together ![]()
iex(40)> :lists.foldr(&[{&1, &2}], [true], [:a, :b, :c, :d, :e, :f])
[a: [b: [c: [d: [e: [f: [true]]]]]]]