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