On 29 November 2011 15:17, Davide Sottara <dsotty(a)gmail.com> wrote:
What about a "custom" accumulate function?
Then I might as well use init/action/result, as the original poster
did. Also according to him, having it all in DRL is sometimes
preferable. If you have the collection already there (not as the
result of a "from collect" as in my example) a direct transformation
from collection to collection would be preferable.
But, again, I think this is too rarely needed to warrant a new feature.
$sortedValues: List() from accumulate (
$f : Fact()
sortByAnyMethodYouPrefer( $f )
We could provide some implementations, even better if incremental.
In the future, we'll probably provide even better native support for
this kind of operations.
View this message in context:
Sent from the Drools: Developer (committer) mailing list mailing list archive at
rules-dev mailing list