Hello,
Can anyone help me with this please. I would like to have a prolog rules that can collect the items of a list that occurs after the '=' signs.
For example:
A= [tag1=textA[tag2=textB[tag3=textC]]], collectText(A, X).
X= [textA[textB[textC]]]
Thank you in advance,,
collecting list items
- Thomas Linder Puls
- VIP Member
- Posts: 1176
- Joined: 28 Feb 2000 0:01
This is not legal Prolog:
So the question does not seem to make sense(!)?
Code: Select all
[tag1=textA[tag2=textB[tag3=textC]]]
[textA[textB[textC]]]
Regards Thomas Linder Puls
PDC
PDC