Macro bebop::collection

source ·
macro_rules! collection {
    ($($k:expr => $v:expr),* $(,)?) => { ... };
    ($($v:expr),* $(,)?) => { ... };
}
Expand description

Macro to define collections easily. Very useful when testing. Copied from https://stackoverflow.com/a/27582993/4404257