Skip to content

Conversation

@mrhooray
Copy link
Owner

@mrhooray mrhooray commented Nov 8, 2025

Summary

  • Remove within_unsorted() method to eliminate API duplication
  • Change within() to return unsorted results (breaking change)
  • Remove complex within_impl() helper with sorted parameter
  • Users can sort results themselves if needed
  • Updates tests to reflect unsorted behavior
  • Simplifies API to single consistent operation

Breaking Changes

  • within() now returns unsorted results (was sorted before)
  • within_unsorted() method removed
  • Tests updated to expect unsorted order

Rationale

This eliminates the confusing sorted/unsorted duplication in the API while providing a cleaner, more Rust-idiomatic interface where users can sort results as needed.

- Remove within() sorted variant, keep only unsorted results
- Eliminate code duplication between within* methods
- Update all tests to expect unsorted order
- Simplify test naming and remove duplicates
- Clean up API to reduce complexity while maintaining functionality

This is a breaking change as within() no longer returns sorted results.
Users who need sorted results should sort the output themselves.
@mrhooray mrhooray force-pushed the simplify-within-unsorted-only branch from 4072960 to ff00a2d Compare November 8, 2025 20:13
@mrhooray mrhooray closed this Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants