You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typenode{
Number : (float)
Add : (node,node)
Multiply: (node,node)}functionreceval(node){// Awesome.nml(11): Cannot unify int and floatmatchnode{|Number(value)->value// this is float|Add(left,right)->eval(left)+eval(right)|Multiply(left,right)->eval(left)*eval(right)}}varnode=Add(Number(1.0),Multiply(Number(2.0),Number(3.0)));print(eval(node));
The text was updated successfully, but these errors were encountered:
Not really a bug, just improvement 😄
The text was updated successfully, but these errors were encountered: