Adding items to a list in Prolog
I want to extract items from a list and add them to another new list. How can i do this -
L=[['abc',18],['bcd',19],['def',20]],
nth1(Count,L,List1),
nth1(2,List1,Value),
**NOW I WANT TO PUT THIS Valie in another new list.So finally new list will have
New=[18,19,20]**
How do I add items to a new list?
+3
source to share