Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > Question on recursion using prolog
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 28th February 02:27
sudda_1
External User
 
Posts: 1
Default 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]]
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666