Macro array

Source
macro_rules! array {
    () => { ... };
    ($x:expr) => { ... };
    ($x:expr, $($y:expr),+) => { ... };
}
Expand description

Builds a linked array.

ยงExamples

#[macro_use] extern crate linked_array;
assert_eq!(array![1,2,3,4], Cons(1, Cons(2, Cons(3, Cons(4, Term)))))