((( newLISP Riddles )))

For the Compleat Fan
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

((( newLISP Riddles )))

Post 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 ;-)
-- (define? (Cornflakes))

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Post 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)
-- (define? (Cornflakes))

Locked