Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exercises(binary-search): example: improve (#254)
Changes: - Make `buffer` no longer an optional. This means we now never return `SearchError.NullBuffer`, but there was no test case for that. - Make the implementation more standard, and avoid overflow when calculating `mid`. I intend to later make this exercise return an optional, not an error union. Refs: #229
- Loading branch information