Macro combine

Source
macro_rules! combine {
    ( $init:expr , $($x:expr),+ $(,)? ) => { ... };
}
Expand description

This is just a small convienience macro to chain several combines together. Everthing after the first expression has to have a From implementation for that type.

ยงExamples

use partial_functional::prelude::*;
use partial_functional::combine;

let min = combine!{ Min::empty(), 10, 30, 20 };
assert_eq!(Min(10), min);