Why does the negation as a failure work with \+ is_list but not with \+ is_flat?

前端 未结 0 1172
醉梦人生
醉梦人生 2020-11-29 07:55
flattenList(A,B):- flattenList(A,[],B).
flattenList([],B,B).
flattenList([H|T],L,B):- flattenList(H,L1,B), flattenList(T,L,L1).

% negation as a failure "\\+/1&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题