Page 1 of 1

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
by answerhappygod
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 1
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 1 (24.14 KiB) Viewed 33 times
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]).