Now if I try (MEMBER '(EP epsilon) GRAMMAR-4-11) I get NIL, whereas I was expecting the third entry to be matched. But
(EQUAL '(EP epsilon) (CADDR GRAMMAR-4-11))
returns T as expected.
(F |(| E |)|)
Am 14.12.2022 um 19:12 schrieb Brian McGuinness:
what does:
(F |(| E |)|)
??
(symbol-name '|(|)"("
ok, I have it done.
But I don't know, if it the right way:
(print (car (member '(T F TP) *GRAMMAR-4-11* :test #'equal)))
(print (car (member '(EP *epsilon*) *GRAMMAR-4-11* :test #'equal)))
This will me display the member of first occurrence.
It's correct but you may find using FIND (no pun intended) more straightforward.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 298 |
Nodes: | 16 (2 / 14) |
Uptime: | 23:00:59 |
Calls: | 6,678 |
Calls today: | 1 |
Files: | 12,222 |
Messages: | 5,341,805 |
Posted today: | 1 |