macro_rules! partfn { ( $( [$start:expr, $end:expr]: $var:ident -> $f:expr,)* ) => { ... }; }
More convenient syntax to create a partial function