nom::apply!
[−]
[src]
macro_rules! apply { ($i:expr, $fun:expr, $arg:expr ) => { ... }; ($i:expr, $fun:expr, $arg:expr, $arg2:expr ) => { ... }; ($i:expr, $fun:expr, $arg:expr, $arg2:expr, $arg3:expr ) => { ... }; ($i:expr, $fun:expr, $arg:expr, $arg2:expr, $arg3:expr, $arg4:expr ) => { ... }; ($i:expr, $fun:expr, $arg:expr, $arg2:expr, $arg3:expr, $arg4:expr, $arg5:expr ) => { ... }; ($i:expr, $fun:expr, $arg:expr, $arg2:expr, $arg3:expr, $arg4:expr, $arg5:expr, $arg6:expr ) => { ... }; }
emulate function currying: apply!(my_function, arg1, arg2, ...)
becomes my_function(input, arg1, arg2, ...)
Supports up to 6 arguments