datatype 'a Multilist = t1 of 'a list
|t2 of 'a Multilist list ;
fun h num [] = []
|h num (x::xs) = (x,num)::h num xs ;
fun f(n,(t1 l)) = h(n,l)
|f(n,(t2 l)) = f(n+1,hd l) @ f(n,tl l);
and i get this error :
operator and operand don't agree in the expression f(n,(t1 l)) and in f(n+1,hd l) @ f(n,tl l)
but i dont understand why i get this errors ?

New Topic/Question
Reply



MultiQuote




|