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