gleam add gemoimport gemo
import bool
fn fib(n) {
use <- gemo.memoize1(fib, n)
use <- bool.guard(n <= 1, n)
fib(n - 1) + fib(n - 2)
}Further documentation can be found at https://hexdocs.pm/gemo.
gleam run # Run the project
gleam test # Run the tests