keyword?
vSummary
Test whether val is a keyword
Arguments
val
This argument is going to be tested
Return value
Whether val is a keyword
Examples
(keyword? 123.123) #f (keyword? 123) #f (keyword? '(123)) #f (keyword? (array/new #nil)) #f (keyword? "asd") #f (keyword? 'abc) #f (keyword? :abc) #t
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($push/val :keyword)) ( 2 ($get/val 'type-of)) ( 4 ($get/val 'v)) ( 6 ($apply 1)) ( 8 ($=)) ( 9 ($ret))