Write a Prolog predicate, countLists(Alist, Ne, Nl), using accumulators, that is true when Nl is the number of items that are listed at the top level of Alist and Ne is the number of empty lists. Suggestion: First try to count the lists, or empty lists, then modify by adding the other counter.
๐ป Solution
week11.pl
The program file week11.pl
was not found in the ai folder.
๐ค Output
w11.txt
The output file w11.txt
was not found in the ai/outputs folder.