Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: I want to assign an element of list to some pointer/attribute to access that element easily instead of using car/cdr ???

$
0
0
Raghu, Not really. You always refer to a sub-list and then access that again and again - so entry=car(yourResult) - then you can you use car(entry) or cadr(entry) - so you don't need to find the sub-list each time. However, there's no real pointer to a value. By the way, it's not a good idea to use your own functions with "ab" as the prefix, since that's confusing - that's the prefix I normally use for my own code, and so others might think it was written by me. Why do you want to do this? It probably suggests that you're not doing things in a particularly SKILL (or LISP) way... Regards, Andrew.

Viewing all articles
Browse latest Browse all 33813

Trending Articles