4 releases

0.1.3 Dec 2, 2019
0.1.2 Dec 1, 2019
0.1.1 Dec 1, 2019
0.1.0 Dec 1, 2019

#68 in #inline

MIT license

4KB
58 lines

IF_EQ

extern crate ifeq;
use ifeq::*;

assert_eq!(9.is(9).then_print("nine"), "nine");
assert_eq!(9.if_eq(9).then_print("nine"), "nine");
assert_eq!(9.if_eq(9).then(|| "nine"), "nine");

No runtime deps