Moreover, the memoise part is better handled with a decorator: it is a special behavior of the function and don't relate to its logic (its body).
Moreover, the memoise part is better handled with a decorator: it is a special behavior of the function and don't relate to its logic (its body).