newLISP Fan Club

Forum => Anything else we might add? => Topic started by: newdep on April 10, 2009, 01:19:27 AM

Title: ((( newLISP Riddles )))
Post by: newdep on April 10, 2009, 01:19:27 AM
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 ;-)
Title:
Post by: newdep on April 10, 2009, 01:47:43 AM
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]