partial_application
The partial!
macro allows for partial application of a function.
partial!(some_fn => arg0, _, arg2, _)
returns the closure |x1, x3| some_fn(arg0, x1, arg2, x3)
.
Move closures are created by adding move
in front of the function: partial!(move ..)
use partial;
// When you're using the 2015 edition of Rust, you need to import the macro like this
extern crate partial_application;