Two scenarios:
- Function is called and data is computed and returned.
- Data is saved in variable, updated when required, data is retrieved from variable.
So I was wondering in what kind of scenarios one would be beneficial over the other?
Two scenarios:
So I was wondering in what kind of scenarios one would be beneficial over the other?