Function reql_macros::args[][src]

pub fn args(input: TokenStream) -> TokenStream

Splice an array of arguments into another term

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

If x is greater than 5 return big, otherwise return small.

This example is not tested
r.branch(args!(r.expr(x).gt(5), "big", "small"));