hi all
I was not able to figure out how the reduce function will work dynamically
can someone explain
Discussion posts and replies are publicly visible
Did you try taking a look at the documentation and running the sample code in your environment to understand its functioning?
yes harshit i have tried this
reduce( function: rule!SB_sum(number: _,sum:_), initial:0, list:{1,2,3}, context:1 )
getting this error
Like the error says, you will need to remove the keywords.
Hey,
Take 3 parameters in the function named: rule!SB_sum
This is how it will work:
This can be achieved using the simple sum() function. What different are you doing in this rule you have created?