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