Cached
use experimental :cached; sub fib-cached($n) is cached { if $n > 1 { return fib-basic($n - 1) + fib-basic($n - 2); } return $n; }