arrow

Macro arrow 

Source
macro_rules! arrow {
    (($($vars:ident),*) => $stat:block) => { ... };
    (($($vars:ident),*) => $oneline:expr) => { ... };
}
Expand description

JavaScript arrow function implementation

let f = likejs::arrow!(() => {"Hello, World!".to_string()});

or

let f = likejs::arrow!(() => "Hello, World!".to_string());