Page 1 of 1

((( newLISP Riddles )))

Posted: Fri Apr 10, 2009 8:19 am
by newdep
Do these without the manual and without the prompt ;-)

first 5 Riddles..

(1) What function sets all its symbols to their associated values?
(2) Name an eatable newlisp function
(3) Does this function return 'true or 'nil? ((fn(x)) true)
(4) How many buildin functions does newlisp have?
(5) Returns (cons '(nil) '(nil)) visualy the same as (dup (array 1) 2)?

Enjoy ;-)

Posted: Fri Apr 10, 2009 8:47 am
by newdep
Oke for those finding the 5-riddles too simple here another brain teaser..

Filloutn the missing objects (...) to make this function return 1000

(... (* ((fn(..) (* .. ..)) ...)) 3)

or like

(.. (* .. ..) 3)