expand ('foo 'a)
Posted: Thu Oct 01, 2009 8:07 pm
Looking at the "expand" function in manual (http://www.newlisp.org/downloads/newlis ... tml#expand):
(set 'x 2 'a '(d e))
(set 'foo 'a)
(expand 'foo 'a) → (d e)
(expand '(a x b) 'x) → (a 2 b)
(expand '(a x (b c x)) 'x) → (a 2 (b c 2))
(expand '(a x (b c x)) 'x 'a) → ((d e) 2 (b c 2))
I have some strange results trying to repeat it. (expand 'foo 'a) gives me only "foo"
(set 'x 2 'a '(d e))
(set 'foo 'a)
(expand 'foo 'a) → (d e)
(expand '(a x b) 'x) → (a 2 b)
(expand '(a x (b c x)) 'x) → (a 2 (b c 2))
(expand '(a x (b c x)) 'x 'a) → ((d e) 2 (b c 2))
I have some strange results trying to repeat it. (expand 'foo 'a) gives me only "foo"