Method code for $root.ancestry()

[Turn on line numbering]
arg gen;
var i, out;

out = [];
if (type(gen) == 'objnum) {
    for i in (.ancestors()) {
        if (i.has_ancestor(gen))
            out += [i];
    }
    return out;
}
if (gen != 0) {
    for i in (.parents())
        out = union(out, i.ancestry(gen - 1));
}
return out;

// $#Edited: 18 Jul 99 13:31 $brandon

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

the Cold Dark