is_func

Function is_func 

Source
pub fn is_func(typ: &Atom) -> bool
Expand 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!(("->"))));