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