Basic constructor macro for boolean-array structures.
(make-boolean-array [:components <components>])
This is the usual way to construct boolean-array structures. It simply conses together a structure with the specified fields.
This macro generates a new boolean-array structure from scratch. See also change-boolean-array, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-boolean-array (&rest args) (std::make-aggregate 'boolean-array args '((:components)) 'make-boolean-array nil))
Function:
(defun boolean-array (components) (declare (xargs :guard (boolean-value-listp components))) (declare (xargs :guard (< (len components) (expt 2 31)))) (let ((__function__ 'boolean-array)) (declare (ignorable __function__)) (b* ((components (mbe :logic (boolean-value-list-fix components) :exec components))) (let ((components (mbe :logic (if (< (len components) (expt 2 31)) components nil) :exec components))) (cons :boolean-array (list components))))))