lambda and fn missing in (symbols)

For the Compleat Fan
Locked
HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

lambda and fn missing in (symbols)

Post by 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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Locked