Question: PROLOG PROGRAMMING IV. Write a definition in Prolog for the predicate without0(L1, L2) which is true if L2 is a copy of L1 with all
PROLOG PROGRAMMING

IV. Write a definition in Prolog for the predicate without0(L1, L2) which is true if L2 is a copy of L1 with all 0's removed. E.g., without0([4, 0, 5, 6, 0], [4, 5, 6]) is true and without0([4, 0, 5], L) binds L to [4, 5]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
