- 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 32 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 i
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
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
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]).