Macro reql::args
[−]
[src]
macro_rules! args { ( $($args:tt)* ) => { ... }; }
Splice an array of arguments into another term
args
is a macro that’s used to splice a number of arguments into another term. This is
useful when you want to call a variadic term such as branch with a set of arguments produced at
runtime.
Example
Get Alice and Bob from the table people
.
let x = 10; r.branch(args!(r.expr(x).gt(5), "big", "small"));