Macro std::macros::bind

macro bind($mac, $arg/* ... */) { ... }

Create a macro "closure"

This built-in macro takes another macro and an arbitrarty number or arguments as parameters and returns a reference to a macro that has these arguments appended on every invocation.

Example