Replacing a function in an expression

Discussion of Common Lisp
abvgdeika
Posts: 20
Joined: Mon Jun 06, 2011 10:59 pm

Re: Replacing a function in an expression

Post by abvgdeika » Fri Nov 16, 2012 10:15 pm

When formulating your problem, you should also think about lexical closures. Assume your piece of LISP code contains the following fragment:

Code: Select all

(flet ((list (&rest argument) .........  definition ..........))
  (LIST a b)    
  (LIST c d e) 
 ....   et cetera ......
)
Are you sure you want to replace function occurences of LIST by "mylist" even in this fragment , inside flet?
To understand LISP, you must first understand LISP.

Post Reply