Creates a lazy-evaluated version of a function that executes only once and caches the result.
The returned function will execute the original function on first call and return
the cached result for all subsequent calls, regardless of arguments. This is useful
for expensive computations or resource initialization.
Creates a lazy-evaluated version of a function that executes only once and caches the result.
The returned function will execute the original function on first call and return the cached result for all subsequent calls, regardless of arguments. This is useful for expensive computations or resource initialization.