charlene1225
IS-IT--Management
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.
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.