Added a cache to Function which stores wrapped function. This allows Wrap to be called multiple times without lots of allocations of the same thing.
This will work well with #235 - a Caller can ask for a Function object (cached) and then wrap it (cached) and then call it, all without allocating anything 🥳
Added a cache to
Function
which stores wrapped function. This allows Wrap to be called multiple times without lots of allocations of the same thing.This will work well with #235 - a
Caller
can ask for aFunction
object (cached) and then wrap it (cached) and then call it, all without allocating anything 🥳