Crate dp_macro

Source

Attribute Macrosยง

dp
Add memoization to a function
dp_default
Allows auxiliary arguments, which are needed for the recursion but are defaulted to a value when calling the function for a solution. The order of non-skipped arguments will not changed.
dp_extra
Allows extra inmutable arguments for functions. Extra values will be the first parameters of the function, followed by the arguments of the recursion, all in order of declaration