Macro im::catlist
[−]
[src]
macro_rules! catlist { () => { ... }; ( $($x:expr),* ) => { ... }; }
Construct a list from a sequence of elements.
Examples
assert_eq!( catlist![1, 2, 3], CatList::from(vec![1, 2, 3]) ); assert_eq!( catlist![1, 2, 3], cons(1, cons(2, cons(3, CatList::new()))) );