NFun icon indicating copy to clipboard operation
NFun copied to clipboard

Support 'return' keyword

Open tmteam opened this issue 3 years ago • 0 comments

allow to return values from function with 'return' value

f(x) = 
    m = x**2
    return m-1

Allow to return values as output variable form equation


var f = Funny.Calc<double>("
     x = 1
     y = x*2 + 1
     c = x+ y
    return c
" )

tmteam avatar Jan 23 '22 13:01 tmteam