#70 CQuery: indexOf

Fechado
4 anos atrás foi aberto por beholder · 1 comentários

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 citou este problema em um commit 4 anos atrás
ranides comentado 4 anos atrás
Proprietário

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

not implemented: `int indexOfEach(EachPredicate<T> value)`
ranides citou este problema em um commit 4 anos atrás
Faça login para participar desta conversação.
Sem milestone
Não atribuída
2 participantes
Carregando...
Cancelar
Salvar
Ainda não há conteúdo.