Thanks alot, Tharwat!
I often read about mapcar and lambda but they're hard to understand and I rarely use them.
Maybe I'll neeed to learn more about list manipulation, since I'm used to work only with setting quotes in LISP.
I have one last question:
If I have this list (lst1) , and I filter-out all of its items, except one in a new list (lst2),
and I end up with list which contains only one item - Is it possible to set a quote for that item?
Because my current method for handling this problem is this:
- (foreach itm lst ;; For every 'itm' in the list given by 'lst' (princ (strcat "\nCurrent item is "" itm "" " )) ) ;; end foreach
But this seems very limited, as I can't proceed with any IF/COND outside the FOREACH function. |