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