Anders429 / Anders429/nested_containment_list

Separate out custom binary search

オープン
#24 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
Rust
スター
3
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。