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