pub fn is_func(typ: &Atom) -> boolExpand description
Returns true if passed type is a type of function.
ยงExamples
use hyperon_atom::expr;
use hyperon::metta::types::is_func;
assert!(is_func(&expr!("->" "A" "B")));
assert!(!is_func(&expr!("A")));
assert!(!is_func(&expr!(("->"))));