Method code for $root.is()

[Turn on line numbering]
arg @args;

if (!args)
    throw(~invarg, "Must have one argument.");
if (type(args[1]) == 'dictionary)
    return has_ancestor(args[2]);
return has_ancestor(args[1]);

["// Created as a part of ColdCore, see: @help Credit"]

the Cold Dark