Diff
Not logged in

Differences From Artifact [ed44c7901d3c5853]:

To Artifact [b35cfd66e862f7bf]:


1 1 @@type = fun(x){ 2 2 if( _isint(x) ) { "int" } 3 3 else { if( _isstr(x) ) { "str" } 4 - else { if( _isfun(x) ) { x } 5 4 else { if( _isundefined(x) ) { "undefined" } 6 - else { "any" }}}} 5 + else { "any" }}} 7 6 }; 8 7 9 8 def binop(a,b,c) { 10 9 fun(x,y){@value( 11 10 if( @type(x)=="undefined" || @type(y)=="undefined" ) { "undefined" } else { 12 11 if( @type(x)==a && @type(y)==b ) { c } else { "error" } 13 12 }