Skip to content

Add split & splitOn operations for Flows#137

Merged
adamw merged 1 commit intomainfrom
splitOn
Jun 16, 2025
Merged

Add split & splitOn operations for Flows#137
adamw merged 1 commit intomainfrom
splitOn

Conversation

@adamw
Copy link
Member

@adamw adamw commented Jun 16, 2025

  • Implement split(Predicate) operation for predicate-based splitting
  • Implement splitOn(List) operation for delimiter sequence splitting
  • Both operations exclude delimiters from output and handle adjacent delimiters
  • Use ArrayDeque for efficient O(1) operations in splitOn implementation
  • Add comprehensive test suite with 32 test cases covering edge cases
  • Migrated functionality from ox Scala PR #329 to Java Flow API

- Implement split(Predicate<T>) operation for predicate-based splitting
- Implement splitOn(List<U>) operation for delimiter sequence splitting
- Both operations exclude delimiters from output and handle adjacent delimiters
- Use ArrayDeque for efficient O(1) operations in splitOn implementation
- Add comprehensive test suite with 32 test cases covering edge cases
- Migrated functionality from ox Scala PR #329 to Java Flow API
@adamw adamw merged commit 770c86f into main Jun 16, 2025
2 checks passed
@adamw adamw deleted the splitOn branch June 16, 2025 19:11
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.

1 participant