Hello everyone,
What I am trying to do is doing list operations like inserting, removing
getting the first element and so... on the lists that are on the working
memory. Here is how I try:
(deffacts B::facts
(B::acceptedPapers (create$))
)
and then:
(defrule accept
(accept ?paper)
?acceptedPapers <- (B::acceptedPapers)
=>
(insert$ ?acceptedPapers 1 ?paper)
)
and when accept is fired, I get the error:
Jess reported an error in routine Value.listValue
while executing (insert$ ?acceptedPapers 1 ?paper)
while executing defrule accept.
Message: '<Fact-12>' is a fact, not a list.
How can I keep a list of accepted papers in this case and add and remove
from it? I couldn't get it to work no matter how I tried. So any help is
appreciated.
Regards,
Aycan Adal