Skip to content

feat(list): add 10 new utility functions#25

Merged
mic1on merged 1 commit into
mainfrom
feature/list-extensions
Mar 14, 2026
Merged

feat(list): add 10 new utility functions#25
mic1on merged 1 commit into
mainfrom
feature/list-extensions

Conversation

@mic1on
Copy link
Copy Markdown
Member

@mic1on mic1on commented Mar 14, 2026

  • group_by: group elements by key function
  • find: find first element matching predicate
  • find_index: find index of first matching element
  • intersection: get intersection of multiple arrays
  • partition: split array into two groups
  • take/take_right: get first/last n elements
  • drop/drop_right: skip first/last n elements
  • nth: get element at index (supports negative)

With comprehensive unit tests (41 test cases)

- group_by: group elements by key function
- find: find first element matching predicate
- find_index: find index of first matching element
- intersection: get intersection of multiple arrays
- partition: split array into two groups
- take/take_right: get first/last n elements
- drop/drop_right: skip first/last n elements
- nth: get element at index (supports negative)

With comprehensive unit tests (41 test cases)
@mic1on mic1on merged commit adf7f97 into main Mar 14, 2026
0 of 6 checks passed
@mic1on mic1on deleted the feature/list-extensions branch March 14, 2026 13:17
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