I try to replace some elements of a list through using
recursive function; but i cannot. Can you advise me?
Function: replace a with e, and b with d.
(defun replace (lst)
(cond ((null lst) 1)
((eq lst 'a) 'e)
((eq lst 'b) 'd)
I want to write a function using recursive function,
which prints the first let's say 15 cubes (1, 8, 27,
64..). H o w ?
How could it be with non-recursive function?
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection
-Original Message-
From: [EMAIL PROTECTED] on behalf of aykut ÿe7aÿf0layan
Sent: Thu 11/1/2007 6:24 PM
To: lisp grup
Subject: [cs-lisp] recursive and 'prog'
I want to write a function using recursive function,
which prints the first let's say 15 cubes (1, 8, 27,
64..). H o w ?
-Original Message-
From: [EMAIL PROTECTED] on behalf of aykut ÿe7aÿf0layan
Sent: Thu 11/1/2007 6:07 PM
To: cs-lisp@cs.bilgi.edu.tr
Subject: [cs-lisp] recursive function
I try to replace some elements of a list through using
recursive function; but i cannot. Can you advise me?
4 matches
Mail list logo