СХ
Size: a a a
СХ
M

ES
M
ТФ
M
S
BO

ВМ
YS
AP
AP
С

ФМ

ФМ
ФМ
ФМ
public static <T> int indexOf(List<T> list, Predicate<? super T> predicate) {
long noMatchPrefix = list.stream().takeWhile(predicate.negate()).count();
return noMatchPrefix == list.size()? -1: (int) noMatchPrefix;
}R(