#70 CQuery: indexOf

已關閉
beholder4 年之前創建 · 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?

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 在代碼提交 4 年之前 中引用了該問題
ranides commented 4 年之前
所有者

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

not implemented: `int indexOfEach(EachPredicate<T> value)`
ranides 在代碼提交 4 年之前 中引用了該問題
ranides4 年之前 關閉
Sign in to join this conversation.
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
保存
尚未有任何內容