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