Is it possible to programmatically construct a function capture without using `Code.eval_quoted`?

Wow, there’s so many little goodies in the stdlib. Never ceases to amaze me.