标签: list prolog predicate
可能重复: Prolog List Merge Question?
嗨,我有两个
attributes(emp,buy,sex,married,decision). data(yes,comp,f,no,approve).
我想使用这个谓词:
example(approve, [emp=yes, buy=comp, sex=f, married=no]). example(reject, [emp=no, buy=comp, sex=f, married=yes]).
你有什么想法吗?