Function extendr_api::functions::global_function
source · [−]Expand description
Get a global function from global_env() and ancestors.
use extendr_api::prelude::*;
test! {
let ls = global_function(sym!(ls))?;
assert_eq!(ls.is_function(), true);
}