Diff
Not logged in

Differences From Artifact [f80a12af3228ea33]:

To Artifact [12b974146da19906]:


20 20 def mergeType(a,b) { 21 21 if( a == "undefined" ): ( if(b=="undefined"):"error" else b ) else ( a ) 22 22 }; 23 23 24 24 @type "if" = fun(c,t,e) {@value( 25 25 if(@type(c)=="int" ): mergeType(@type(t()), @type(e())) else : "error" 26 26 )}; 27 + 28 +def fib(x) 29 +{ 30 + if x<2 then 1 else fib(x-1) + fib(x-2) 31 +}; 32 + 33 +print( @type(fib(10)) );