<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=779104219-11112008><FONT face=Arial size=2>I'm trying to
average top N items. I can of course collect the items and do the rest in
the consequence, but thought it might be a scenario applicable to a custom
accumulate function. However, the accumulate function
interface methods only take one parameter. If I were to declare a
function top(N, things) within an accumulate call would drools autobox the
parameters into some sort of collection? </FONT></SPAN></DIV>
<DIV><SPAN class=779104219-11112008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=779104219-11112008><FONT face=Arial size=2>Maybe this is a
naive solution anyway. I am still learning to think
declaratively.</FONT></SPAN></DIV>
<DIV><SPAN class=779104219-11112008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=779104219-11112008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=779104219-11112008><FONT face=Arial
size=2>cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=779104219-11112008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=779104219-11112008><FONT face=Arial
size=2>-Jess</FONT></SPAN></DIV></BODY></HTML>