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
-
answerhappygod
- Site Admin
- Posts: 899604
- 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]).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!