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