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