boolean

v


Summary

Coerce to boolean

Examples

(boolean "a")
#t

(boolean "")
#t

(boolean 0.1)
#t

(boolean 1)
#t

(boolean 0)
#t

(boolean #f)
#f

(boolean #nil)
#f

(boolean #t)
#t

Bytecode

Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.

(    0 ($get/val 'v))
(    2 ($jf* 7))
(    5 ($push/true))
(    6 ($jmp* 4))
(    9 ($push/false))
(   10 ($ret))

Related