Macro enso_generics::new[][src]

macro_rules! new {
    ($(,)*) => { ... };
    ($t:expr $(,$($ts:expr),*)?) => { ... };
}
Expand description

Creates new HList from the provided elements, similar to vec!. In order to provide type for the list, use the ty macro. In order to pattern match on it, use the pat macro.

let HList::pat![t1,t2] : HList::ty![&str,usize] = HList::new!["hello",7];