I'm pretty new in Prolog, and I was trying (without any success) to get a number from it's representation as a list of numbers. Eg: L=[1,2,3] => N=123 I managed to build this recursive algorithm but it sais "Arithmetic Conv is not a function". Can someone help me correcting it?
conv([],0).
conv([H|T],R):-
R is H*10+conv(T,R).
conv([E],R):-
R is E.