Macro swipl::prelude::functor

source ·
functor!() { /* proc-macro */ }
Expand description

Create a static functor.

The functor will only actually be created on first invocation. Each subsequent invocation will reuse the earlier retrieved functor. This is convenient for code that uses the exact same functor on repeated invocations.