Answers for "append prolog"

0

append prolog

?- append([a,b], [c], X).
X = [a,b,c].

?- append(X, [Last], [a,b,c]).
X = [a,b],
Last = c.

?- append([a,b], More, List).
List = [a,b|More].
Posted by: Guest on October-21-2021
0

append prolog

?- append([a,b], [c], X).
X = [a,b,c].

?- append(X, [Last], [a,b,c]).
X = [a,b],
Last = c.

?- append([a,b], More, List).
List = [a,b|More].
Posted by: Guest on October-21-2021

Browse Popular Code Answers by Language