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