lambda and fn missing in (symbols)

Started by HPW, January 29, 2006, 10:32:50 AM

Previous topic - Next topic

HPW

lambda and fn are missing in the return of (symbols).

Are they no primitives?

(Found on building keyword-lists for highlighting)
Hans-Peter

Lutz

#1
They are not really primitives, but rather a special type of a list, for that reason:



> (empty? '(fn))
true
> (first '(fn (x) (+ x x))) ;; not 'fn'
(x)
>


but in editos they definitely should be highlighted, as well as 'nil' and 'true'



Lutz



ps: see also http://newlisp.org/downloads/newlisp_manual.html#lambda_expressions">http://newlisp.org/downloads/newlisp_ma ... xpressions">http://newlisp.org/downloads/newlisp_manual.html#lambda_expressions , and I added lambda and fn to doc/keywords.txt