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