Commit graph

2 commits

Author SHA1 Message Date
a29f64b700
fix: resolve all linter issues (errcheck and gofmt)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Tests / Build (push) Has been cancelled
Fixed 5 linter issues identified in quality assessment:
- first_test.go: Check error return in BenchmarkFirst
- parallel_map_test.go: Check error returns in benchmarks (2 locations)
- parallel_reduce_test.go: Check error return in BenchmarkParallelReduce
- foldright.go: Fix comment formatting (proper indentation)

All tests pass. Linter now reports 0 issues.

Quality score: 9.6/10 → 10.0/10 (perfect)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 09:29:05 +01:00
5240c27fcd
feat: add First and FirstN functions (#44)
- Add First: returns first element or error if empty
- Add FirstN: returns first n elements safely
- ErrEmptySlice error for consistent error handling
- Comprehensive tests including edge cases
- Benchmarks included

Resolves Issue 16

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-16 08:53:40 +01:00