Very well written. Thank you.
Whether there's the need for a Drools-prvided library (beyond the things there are now as accumulate functions) remains to be seen.
I still maintain the notion that it should be possible to obtain quantifier results and continue LHS evaluation, and I think that the functional approach would make this easier. It can be done now, using a dedicated accumulate function, but there's the issue of escaping from the iteration when the final result is established.
as anticipated by Mark, I put down some ideas on how we could start introducing some functional programming features in the DRL.
It's needless to say that the document has to been considered just a draft in its very first stage and any feedback or suggestion to improve or clarify it is welcome.
rules-dev mailing list