mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-23 11:28:45 +08:00
security holes fixed
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
# Y combinator by ValKmjolnir
|
||||
|
||||
import("lib.nas");
|
||||
var count=0;
|
||||
|
||||
var fib=func(f){
|
||||
return f(f);
|
||||
}(
|
||||
func(f){
|
||||
return func(x){
|
||||
count+=1;
|
||||
if(x<2) return x;
|
||||
return f(f)(x-1)+f(f)(x-2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user