#70 CQuery: indexOf

Zamknięty
otworzone 4 lat temu przez beholder · 1 komentarzy
Large Luigi skomentował 4 lat temu

It is something like query.filter.first, but we want to return index of selected element, not value of element.

int indexOf(T value) 
int indexOf(Predicate<T> value)
int indexOfEach(EachPredicate<T> value)

Maybe we should return OptionalInt instead of -1?

It is something like `query.filter.first`, but we want to return index of selected element, not value of element. ``` int indexOf(T value) int indexOf(Predicate<T> value) int indexOfEach(EachPredicate<T> value) ``` Maybe we should return OptionalInt instead of -1?
ranides wspomina ten problem w commicie 4 lat temu
ranides skomentował 4 lat temu
Właściciel

not implemented: int indexOfEach(EachPredicate<T> value)

not implemented: `int indexOfEach(EachPredicate<T> value)`
ranides wspomina ten problem w commicie 4 lat temu
Zaloguj się, aby dołączyć do tej rozmowy.
Brak kamienia milowego
Brak przypisania
2 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.