Macro aorist_extendr_api::list [−][src]
macro_rules! list { () => { ... }; ($($rest : tt) *) => { ... }; }
Expand description
Create a list.
Example:
use extendr_api::prelude::*; test! { let mylist = list!(x=1, y=2); assert_eq!(mylist, r!(List::from_pairs(vec![("x", r!(1)), ("y", r!(2))]))); }
Panics on error.