array?

val


Summary

Test whether val is an array

Description

Sometimes also called a vector.

Arguments

val
This argument is going to be tested

Return value

Whether val is an array

Examples

(array? 'abc)
#f

(array? 123.123)
#f

(array? 123)
#f

(array? '(123))
#f

(array? (array/new #nil))
#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 :array))
(    2 ($get/val 'type-of))
(    4 ($get/val 'val))
(    6 ($apply 1))
(    8 ($=))
(    9 ($ret))