Skip to content

Add Finder::nth() method to find the 1st, 2nd, 3rd, and so on matching item, or multiple matching items at specific positions#43

Merged
samsonasik merged 7 commits intomainfrom
add-nth
Apr 20, 2026
Merged

Add Finder::nth() method to find the 1st, 2nd, 3rd, and so on matching item, or multiple matching items at specific positions#43
samsonasik merged 7 commits intomainfrom
add-nth

Conversation

@samsonasik
Copy link
Copy Markdown
Owner

@samsonasik samsonasik commented Apr 20, 2026

  • Add nth method
  • Add unit test for nth method
  • Update readme

…rence, or matched items at multiple occurrences
@samsonasik samsonasik marked this pull request as draft April 20, 2026 04:21
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 20, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (300522a) to head (8dc1cfc).
⚠️ Report is 2 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #43   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity        87        96    +9     
===========================================
  Files              8         8           
  Lines            253       281   +28     
===========================================
+ Hits             253       281   +28     
Flag Coverage Δ
tests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samsonasik samsonasik changed the title Add Finder::nth() method to find the matched item at a specific occurrence, or matched items at multiple occurrences Add Finder::nth() method to Find the 1st, 2nd, 3rd, and so on matching item, or multiple matching items at specific positions. Apr 20, 2026
@samsonasik samsonasik changed the title Add Finder::nth() method to Find the 1st, 2nd, 3rd, and so on matching item, or multiple matching items at specific positions. Add Finder::nth() method to find the 1st, 2nd, 3rd, and so on matching item, or multiple matching items at specific positions Apr 20, 2026
@samsonasik samsonasik marked this pull request as ready for review April 20, 2026 06:32
@samsonasik samsonasik self-assigned this Apr 20, 2026
@samsonasik samsonasik merged commit 961f08e into main Apr 20, 2026
8 checks passed
@samsonasik samsonasik deleted the add-nth branch April 20, 2026 06:35
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