Sudda_1 2012-02-28 02:27:20
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]]