Hi,
I want to add an element in the head of a list, for instance:
add(a,[b,c],N). N= [a,b,c].
But I'm too stupid, I don't know how to start with the easy case, when the list is empty. I thought of add(A,[],[A]). I think it is wrong, because at the end of a recursive list A will stand at the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.