Macro reql::args [] [src]

macro_rules! args {
    ( $($arg: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.

Note that args evaluates all its arguments before passing them into the parent term, even if the parent term otherwise allows lazy evaluation.

Example

Get Alice and Bob from the table people.

let x = 10;
r.branch(args!(r.expr(x).gt(5), "big", "small"));