static L powersOfTwoUpTo(int firstPowerOfTwo default 1, int n) { new IntBuffer l; int i = firstPowerOfTwo; while (i <= n && i > 0) { l.add(i); i *= 2; } ret l.asVirtualList(); }