Instantiate arguments in Prolog

后端 未结 0 1978
离开以前
离开以前 2021-01-05 07:11

Consider the PROLOG predicate f(list,integer) with flow model (i,o).

f([],0).
f([H|T],S):-
    f(T,S1),
    S1 is S-H.

Give the result of the

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