((( newLISP Riddles )))

Started by newdep, April 10, 2009, 01:19:27 AM

Previous topic - Next topic

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

#1
Oke for those finding the 5-riddles too simple here another brain teaser..



Filloutn the missing objects (...) to make this function return [size=150]1000[/size]



[size=150](... (* ((fn(..) (* .. ..)) ...)) 3)[/size]



or like

[size=150]

(.. (* .. ..) 3)[/size]
-- (define? (Cornflakes))