Question on recursion using prolog
Hi,
I am trying to understand conditional recursion using prolog.
I have a list say [a, b, c, d, e, f].
I have another list [a, a, d].
How do I find the count of each element in the 2nd list.
That is I need a list of the form [[a,2],[d,1]]
