heap

Macro heap 

Source
macro_rules! heap {
    [ ] => { ... };
    [ $elem:expr; $n:expr ] => { ... };
    [ $($e:expr),+ $(,)? ] => { ... };
}
Expand description

new a BinaryHeap<V>

heap![a, b]

equivalent to

BinaryHeap::from(vec![a, b])