What I was wondering is how to specify the built-in operators as a
function parameter, short of wrapping it into a lambda function like
above? Something like:
{Browse {Accumulate 0 [1 2 3 4 5] op+}}
Where op+ is just supposed to be the binary plus operator as a function
that takes two parameters.
I'm doing this all the time :-)
{Browse {FoldL [1 2 3 4] Number.'+' 0}}
You can use many functions like this, e.g. Min and Max, just check the docs.
Cheers,
Filip
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users