• Returns a boolean value, indicating whether the given value is a binary tree.

    Parameters

    • value: any

    Returns boolean

    bool

    Example

    const tree = make_tree(1, make_empty_tree(), make_empty_tree());
    display(is_tree(tree)); // Shows "true" in the REPL