multi_compare 0.1.0

Macro for comparing multiple values in a concise way. (a < b < c)
Documentation
/// This macro allows you to compare multiple values without the && operator avoiding
/// duplication and improving readability.
/// 
/// ## Example
///
/// ```rust
/// use multi_compare::c;
///
/// fn main (){
///     assert!(c!(1 < 2 < 3));    
/// }
/// ```
#[macro_export]
macro_rules! c{
    ( $a:tt $op:tt $b:tt) => {
        $a $op $b
    };
    ( $a:tt $op:tt $b:tt $( $op_rest:tt $c:tt )+ ) => {
        $a $op $b && c!($b $( $op_rest $c )+)
    };
}