This doesn't work if `functions` contains more than one thing (all `f`s will refer to the last value).