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