Per the request of the Libraries Team, I have added a specialized constructor to the Closure class to ease the process of binding Closure instances to native C++ callable function objects. This new constructor simply takes in the Callable (std::function<std::deque<NodePtr>(std::deque<NodePtr>)>), as well as a boolean indicating whether or not this is a variadic procedure, and constructs the appropriate Closure object, initializing all of the necessary fields.
Per the request of the Libraries Team, I have added a specialized constructor to the
Closure
class to ease the process of bindingClosure
instances to native C++ callable function objects. This new constructor simply takes in theCallable
(std::function<std::deque<NodePtr>(std::deque<NodePtr>)>
), as well as a boolean indicating whether or not this is a variadic procedure, and constructs the appropriateClosure
object, initializing all of the necessary fields.