Page 1 of 1

PROLOG LANGUAGE Write a Prolog rule clean_list/2 where the first parameter is a list and the 2nd parameter is a list of

Posted: Sun Jul 03, 2022 11:24 am
by answerhappygod
PROLOG LANGUAGE
Write a Prolog rule clean_list/2 where thefirst parameter is a list and the 2nd parameter is a list of thenumbers in the list.
For example:
clean_list([1,two,'three',four,5,6],X).
X = [1, 5, 6].