예제 #1
0
def test_anyMatch_2():
    stream = Stream([1, 2, 3, 4])
    assert stream.anyMatch(lambda x: x < 0) is False
예제 #2
0
def test_anyMatch_1():
    stream = Stream([1, 2, 3, 4])
    assert stream.anyMatch(lambda x: x > 3) is True