Yes, that's how you
can sweep a lot of data of different type together in one rule. The rule still
fires of some types are not present.
Roger Studner [mailto:[EMAIL PROTECTED]
Sent: vrijdag 2 december 2005
Subject: JESS: Accumulate Function
Are there situations or
usages of (accumulate) that would actually prevent a rule from firing?
?c <- (accumulate (bind ?count
(bind ?count (+ ?count
look for.. single fact, not even complex)
If there are *no matches* to this pattern, should it always fire and have ?c
bound to zero?