unseenPastQuiltCount property

int get unseenPastQuiltCount

Counts consecutive unknown quilts from the past end.

Reverses heights to find trailing unknowns, informing prefetch thresholds in Carpet.

Implementation

int get unseenPastQuiltCount {
  int g = 0;

  for (double i in quiltHeights.reversed) {
    if (i > 0) {
      return g;
    }

    g++;
  }

  return g;
}