Excluding even numbers in Prolog

前端 未结 0 456
南方客
南方客 2021-01-06 17:34

Let L be a numerical list and consider the following Prolog definition for a predicate g(list,list) with the flow model (input,output):

g([],[]).
g([H|T],[H|S         


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