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