Returns the index of the first successful check. @param values values to check @return index, -1 otherwise
(final Iterable<T> values)
| 35 | * @return index, {@code -1} otherwise |
| 36 | */ |
| 37 | default int index(final Iterable<T> values) { |
| 38 | int i = 0; |
| 39 | for(final T value : values) { |
| 40 | if(ok(value)) return i; |
no outgoing calls