Passing from append to difference list on prolog

后端 未结 0 1925
青春惊慌失措
青春惊慌失措 2020-12-09 18:28

could someone help me on transforming this code with appends into one using difference of list?

leaves(nil,[]).
leaves(t(X,nil,nil),[X]) :- !.
leaves(t(_,L,R)         


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