I'm new in prolog.
May I ask, if I wanna add the H and Tail in a list separately,how should i write??
for example, i have list [[3,12],[4,5]].
and I want the output become H = 7,T = 17.
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.