Abdulaziz Ghuloum wrote:
Change it to:(define (fib x) ((ifte (less-than= 1) (constant 1) (bi (uni (sub 1) fib) (uni (sub 2) fib) +)) x))
In idiomatic FP code, there are no named parameters. But yeah, for practical purposes, that'll work. Ed
Abdulaziz Ghuloum wrote:
Change it to:(define (fib x) ((ifte (less-than= 1) (constant 1) (bi (uni (sub 1) fib) (uni (sub 2) fib) +)) x))
In idiomatic FP code, there are no named parameters. But yeah, for practical purposes, that'll work. Ed