simit
simit copied to clipboard
make += operator more explicit
Take this example :
func Sum(a:float)->r:float r=3.0; end func TestSum(q:Quad)->a:vectorquads a(q)=Sum(a(q)); a(q)=Sum(a(q)); end`
and then map this function
a=map TestSum to quads reduce +; print "Value of a ", a;`
The value of a is 6.0