Creates a function that is only executed once, and then memoizes and returns the result.
The type of the function to be executed once.
The function to be executed once.
Creates a function that is only executed once, and then memoizes and returns the result.