simit icon indicating copy to clipboard operation
simit copied to clipboard

make += operator more explicit

Open Lugatod opened this issue 8 years ago • 0 comments

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

Lugatod avatar Oct 05 '16 21:10 Lugatod