Re: Replacing elements in a list
Posted: Wed Jun 10, 2009 3:17 am
Nope I say it again... It isnt homework
Discuss and learn Lisp programming of all dialects. NOTICE: Site locked. No new users or posts.
http://www.lispforum.com/
Then why in the world are you so obsessed with this? LAMBDA isn't something you just “modify a function with†— what you say you want to do makes absolutely no sense that I can see.Lispoman wrote:Nope I say it again... It isnt homework
The reason people here is thinking that this is homework is that no one is understanding what exactly you want, what you are saying makes no sense. When someone say something that makes no sense it usually means that that person got an exercise wrong.Lispoman wrote:Nope I say it again... It isnt homework
Code: Select all
(defun myfunc (x)
(mapcar (lambda (elt)
(if (< elt 0)
(intern (format nil "*~a" elt))
elt))
x))