@once(function)

Evaluates the given function once and returns the value. Subsequent invocations immediately return that value.

This can be used to calculate something expensive on demand, saving the results in memory to avoid paying that cost again later.