getTreeInfoFromIterator<K> function

String getTreeInfoFromIterator<K>(
  1. AVLTreeIterator<K> itr
)

Implementation

String getTreeInfoFromIterator<K>(AVLTreeIterator<K> itr) {
  int s = 0;
  var l = <K>[];
  while (itr.hasSomeMoreItems()) {
    l.add(itr.next().key);
    s++;
  }
  return "NoOfItertion: $s, ${l.join('|')}";
}