New Features
This release adds 12 new utility functions to enhance string and slice manipulation capabilities.
Slice Operations
- Filter: Filter slice elements by predicate function
- Map: Transform each element using a function
- Reverse: Reverse slice order
- IndexOf: Find first occurrence index
- LastIndexOf: Find last occurrence index
Set Operations
- Difference: Get elements in first slice but not in second
- Union: Combine multiple slices and remove duplicates
- Intersection: Get common elements between slices
String Operations
- NormalizeWhitespace: Clean up and normalize whitespace
- IsBlank: Check if string is empty or only whitespace
- RemovePrefix: Remove prefix if present
- RemoveSuffix: Remove suffix if present
Improvements
- All new functions follow consistent patterns
- Proper nil and empty input handling
- Efficient O(n) algorithms for set operations
- No input mutation - all functions return new slices
- Comprehensive test coverage maintained at 98.8%
Documentation
- README updated with categorized function list
- All functions properly documented with godoc comments