memoize method
Returns a memoized version of the function.
Caches the result of the function based on its arguments and actually runs the computation only once for a given combination of arguments.
Because of that, the source function must be pure.
Implementation
F7<A, B, C, D, E, F, G, T> memoize() {
final cached = createCached<T>();
return (a, b, c, d, e, f, g) => cached([a, b, c, d, e, f, g]);
}