[Turn on line numbering]arg checked, levels, maxlev; var c, list; list = [this()]; levels++; // check parents if (!maxlev || maxlev != levels) { for c in (.children()) { list += [c.descendants_to(checked, levels, maxlev)]; checked = checked.setadd(c); } } return list;
["// Created as a part of ColdCore, see: @help Credit"]