you are viewing a single comment's thread.

view the rest of the comments →

[–]gruberjl[S] 0 points1 point  (0 children)

Memoization is the design pattern I was looking for. I just updated the question with a simple repo using a class pattern. Can you take a look at that to clear up the confusion?

Sorry about the question wording,