Why do you want to avoid foreach which happens to cater
for your needs? Just write a simple wrapper (I'll call
it apply$) and use it just like (apply):
; a function to be called on each element of a list
(deffunction show (?x)
(printout t show: ?x crlf)
)
; (apply$ function expression*)
;
I do not, but it sure sounds familiar; seems to me I recall at least
talking to someone about such a tool at one time.
In any case, letting Jess parse the code itself, then using the
Rete.listXXX methods and the docstrings, this should not be too hard
to put together. Sounds like either a good
Actually, something much like Wolfgang's apply$ is already built
into recent versions of Jess; it's called map. But I actually don't
think that's what the O.P. is after: rather than calling a function
with each element of a list as successive arguments, I think he wants
to call the function on
Dear Colleague,
We would appreciate your forwarding this announcement to those who
may be interested.
If you wish to unsubscribe, in which case we apologize, please email
[EMAIL PROTECTED] with unsubscribe in your email subject.
If you receive it more than once, kindly copy-and-paste in the