@Test
    public void testBitAnd() {
        int value = 31 & 15 & 7 & 3;
        
        assertEquals(Optional.of(value), Seq.of(31, 15, 7, 3).bitAnd());
        assertEquals(Optional.of((long) value), Seq.of(31, 15, 7, 3).bitAnd(t -> (long) t));
        assertEquals(value, Seq.of(31, 15, 7, 3).bitAndInt(t -> t));
        assertEquals((long) value, Seq.of(31, 15, 7, 3).bitAndLong(t -> t));
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL/src/test/java/org/jooq/lambda/SeqTest.java