Implement chunk_by operation (#14410)

# Description

This pull requests implements a new ~~partition-by~~ `chunk-by` command.
The operation takes a closure and partitions the input list into
sublists based on the return value of the closure.
- fixes #14149

Examples, tests and and documentation were added accordingly.


![image](https://github.com/user-attachments/assets/c272e2ec-9af3-4a88-832b-ddca4eb14c8f)


![image](https://github.com/user-attachments/assets/178968e7-c165-4d8c-858c-98584d653b0a)
This commit is contained in:
Renan Ribeiro
2024-11-29 18:37:27 -03:00
committed by GitHub
parent 7f61cbbfd6
commit dc9e8161d9
5 changed files with 318 additions and 0 deletions

View File

@ -8,6 +8,7 @@ mod break_;
mod bytes;
mod cal;
mod cd;
mod chunk_by;
mod chunks;
mod compact;
mod complete;