Does anyone know of an simple/efficient way to find facts with distinct slot values? For example, given the following deftemplate:
(deftemplate assignment (slot key)(slot value)) I want to find each 'assignment' fact with a unique/distinct 'key' value. In this instance I could have multiple assignment facts with the same 'key' and different 'values'. I need to process only those assignment facts that only have a single value. For example: (deffacts initial-facts (assignment (key root)(value a)) (assignment (key root)(value b)) (assignment (key child)(value a)) (assignment (key grandchild)(value a)) (assignment (key grandchild)(value b))) I want a rule that will only match the assignment fact with key=child. I hope this makes sense. -Mitch -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
