Method code for $physical<$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: while ((| (c = dict_keys(d)[++i]) |)) {
  7:     for child in (c.children()) {
  8:         pause();
  9:         d = dict_add(d, child, 1);
 10:     }
 11:     pause();
 12: }
 13: return dict_keys(d);

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

Tlon