memoz v0.2.0 MemoLoop View Source

A memoize recursive loop macro.

Link to this section Summary

Functions

The first Parameter is initial parameter of function block. The second Parameter is function block, it can be recursed by recur

Link to this section Functions

The first Parameter is initial parameter of function block. The second Parameter is function block, it can be recursed by recur.

### Example

import MemoLoop
loop 100 do
  0 -> 0
  1 -> 1
  x -> recur(x-1) + recur(x-2)
end #=> 354224848179261915075