See more
That code is declarative and lazy as well as functionally “pure” in that no mutation of state is occurring that would cause thread-safety issues.
conditionally return immediately from a cache