update/optimize test files

This commit is contained in:
ValKmjolnir
2022-02-07 23:41:50 +08:00
parent 54da9e4ee1
commit 87f2b78fc8
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ var fib=func(f){
func(f){
return func(x){
if(x<2) return x;
return f(f)(x-1)+f(f)(x-2);
var tmp=f(f);
return tmp(x-1)+tmp(x-2);
}
}
);