You find ATOM to be useless?sylwester wrote:Another relic from that paper that is somewhat useless today but still part of CLISP is atom.
Code: Select all
#'atom == (lambda (x) (not (consp x)))
You find ATOM to be useless?sylwester wrote:Another relic from that paper that is somewhat useless today but still part of CLISP is atom.
Code: Select all
#'atom == (lambda (x) (not (consp x)))
Not useless as a function but, like eq, has a misguiding name. Must say I prefer (not(consp x)) any day.smithzv wrote:You find ATOM to be useless?sylwester wrote:Another relic from that paper that is somewhat useless today but still part of CLISP is atom.I find I use it all the time when traversing a syntax tree.Code: Select all
#'atom == (lambda (x) (not (consp x)))