github.com/coyove/nj@v0.0.0-20221110084952-c7f8db1065c3/tests/bench/fib.tengo (about)

     1  fib := func(x) {
     2  	if x == 0 {
     3  		return 0
     4  	} else if x == 1 {
     5  		return 1
     6  	}
     7  	return fib(x-1) + fib(x-2)
     8  }
     9  
    10  fib(35)