void () { Condition<Integer> cond = i -> Math.abs(i - 10) <= 5; JBIterable<Integer> it = JBIterable.generate(1, INCREMENT).skipWhile(not(cond)).takeWhile(cond); assertEquals(11, it.size()); assertEquals(Integer.valueOf(5), it.first()); assertEquals(Integer.valueOf(15), it.last()); }