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