@Test
    public void testGroupedForEach() {
        // [#271]
        List<String> result = new ArrayList<>();
        Seq.range(0, 8)
           .grouped(i -> (int) i / 3)
           .map(Object::toString)
           .forEach(result::add);

        assertEquals(Arrays.asList("(0, 012)", "(1, 345)", "(2, 67)"), result);
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL/src/test/java/org/jooq/lambda/SeqTest.java