Macro seax_util::list
[−]
[src]
macro_rules! list { ( $e:expr, $($rest:expr),+ ) => { ... }; ( $e:expr ) => { ... }; () => { ... }; }
Convenience macro for making lists.
Example:
assert_eq!( list!(1i32, 2i32, 3i32), Cons(1i32, Box::new(Cons(2i32, Box::new(Cons(3i32, Box::new(Nil)))))) );