f(::Function) variants for `mktemp` and `mktempdir`