macro_rules! constant2 { ($x:expr) => { ... }; }
The constant function with two arguments constant2(x) = (_, _) -> x.
use rust2fun::prelude::*; let actual = (1..4).reduce(constant2!(2)); assert_eq!(Some(2), actual);