, 2011 11:22 AM
To: jess-users
Subject: Re: JESS: multiple bindings of a multislot
I solved it by binding the lot: (Temp (m $?mels)) and writing deffunctions
testing all other patterns.
I ran into this while trying to solve the Zebra Puzzle in a way fundamentally
different from the example
I solved it by binding the lot: (Temp (m $?mels)) and writing deffunctions
testing all other patterns.
I ran into this while trying to solve the Zebra Puzzle in a way
fundamentally different from the example distributed with Jess. I have all
permutations as facts and select them by filtering accor
Yes, "reopening" a slot like this is an error; this behavior was inherited from
CLIPS.
I can't think of any particularly elegant workarounds. You can name those
anonymous multifields and refer to them later in the rule, though -- i.e.,
(Temp (m $?first one two $?rest)
"?first" and "?rest"