call method

V call(
  1. A1 arg
)

Calls the wrapped computation with arg and returns the cached value.

If a cached value for the given arg exists, it will return that. Otherwise, it will compute the value, cache it, and then return it.

Implementation

V call(A1 arg) => _cache[arg] ??= _body(arg);