Method code for $root.descendants()

[Turn off line numbering]
  1: var kids, i, c, child, d;
  2: 
  3: d = #[];
  4: for child in (children()) {
  5:     d = dict_add(d, child, 1);
  6:     refresh();
  7: }
  8: while ((| (c = dict_keys(d)[++i]) |)) {
  9:     catch ~objnf {
 10:         for child in (c.children()) {
 11:             pause();
 12:             d = dict_add(d, child, 1);
 13:         }
 14:         pause();
 15:     }
 16: }
 17: return dict_keys(d);
 18: 
 19: // $#Edited: 24 Jun 03 16:15 $brandon
 20: // $#Edited: 08 Jul 17 20:04 $brandon

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

the Cold Dark