Anders429 / Anders429/nested_containment_list
Separate out custom binary search
Abierto
good first issue
- Lenguaje dominante
- Rust
- Estrellas
- 3
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The binary search done in `next()` and `next_back()` is basically just a regular `slice::binary_search_by` with added access to the current index in the function. The two code chunks are nearly identical and can be separate out into a separate `enumerated_binary_search_by()` method.
This could either be a helper method in this crate or a separate crate on its own. That depends on whether we think people will use it in other contexts, I suppose.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.