What is the output of the following Prolog query? Reminder, A and B are output variables and the list [1,2,3,4) is the i
Posted: Fri May 20, 2022 12:16 pm
What is the output of the following Prolog query? Reminder, A and B are output variables and the list [1,2,3,4) is the input. xFunc(X,[],[X]). xFunc(X,[Y|T],[YINT]):- xFunc(X, T,NT). ?- xFunc(A,B,[1,2,3,4]).