[][src]Macro canrun::lmap

macro_rules! lmap {
    ($($key:expr => $value:expr),*) => { ... };
}

Create an LMap with automatic key/value IntoVal wrapping.

The primary benefit is that it allows freely mixing resolved values and LVars.

Example:

use canrun::var;
use canrun::lmap::{lmap, LMap};

let x = var();
let map: LMap<i32, i32> = lmap!{x => 1, 2 => 3};