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