Page 1 of 1

lambda and fn missing in (symbols)

Posted: Sun Jan 29, 2006 6:32 pm
by HPW
lambda and fn are missing in the return of (symbols).
Are they no primitives?
(Found on building keyword-lists for highlighting)

Posted: Sun Jan 29, 2006 8:30 pm
by Lutz
They are not really primitives, but rather a special type of a list, for that reason:

Code: Select all

> (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_ma ... xpressions , and I added lambda and fn to doc/keywords.txt