[Turn off line numbering]1: arg checked, levels, maxlev; 2: var c, list; 3: 4: list = [this()]; 5: levels++; 6: 7: // check parents 8: if (!maxlev || maxlev != levels) { 9: for c in (.parents()) { 10: list += [c.ancestors_to(checked, levels, maxlev)]; 11: checked = checked.setadd(c); 12: } 13: } 14: return list;
["// Created as a part of ColdCore, see: @help Credit"]