SubL/examples.symbolp

From Public Domain Knowledge Bank
Jump to: navigation, search

SubL/examples.1

symbolp

symbolp w/ 0 args is ERROR

CYC(#): (symbolp)
Error: Cannot make an arity 0 function from #<Function SYMBOLP> {req=1 ...}

symbolp w/ 2+ args is ERROR

CYC(#): (symbolp "hello" "world")
Error: Cannot make an arity 2 function from #<Function SYMBOLP> {req=1 opt=0 allowsrest=false}

(symbolp <string> )

CYC(#): (symbolp "hello")
[Time: 0.0 secs]
NIL
CYC(#): (symbolp #$Lenat)
[Time: 0.0 secs]
NIL

(symbolp <number> )

CYC(#): (symbolp 1)
[Time: 0.0 secs]
NIL