Macro extendr_api::prelude::list

source ·
list!() { /* proc-macro */ }
Expand description

Create a List R object from a list of name-value pairs.

    assert_eq!(list!(a=1, 2, 3), List::from_pairs(&[("a", 1), ("", 2), ("", 3)]));