nushell/crates/nu-command/src
Renan Ribeiro dc9e8161d9
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)
2024-11-29 13:37:27 -08:00
..
bytes Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
charting Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
conversions Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
database Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
date Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
debug remove terminal_size crate everywhere it makes sense (#14423) 2024-11-23 19:37:12 -08:00
env Always load default env/config values (#14249) 2024-11-20 16:15:15 -06:00
experimental Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
filesystem Rely on display_output hook for formatting values from evaluations (#14361) 2024-11-19 21:04:29 +08:00
filters Implement chunk_by operation (#14410) 2024-11-29 13:37:27 -08:00
formats Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
generators Seq char update will work on all char (#14261) 2024-11-15 21:05:29 +01:00
hash add binary as input to hash commands (#13923) 2024-09-25 16:47:52 +08:00
help Change append operator to concatenation operator (#14344) 2024-11-24 10:59:54 -08:00
math Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
misc Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
network command/http/client use CRLF for headers join instead of LF (#14417) 2024-11-23 13:49:25 -08:00
path fix path exists on a non-directory file (#13763) 2024-09-11 12:45:39 -05:00
platform Add term query, for querying information from terminals. (#14427) 2024-11-25 15:13:11 -06:00
random Add Filesize type (#14369) 2024-11-29 21:24:17 +00:00
removed Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
shells Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
stor feat: stor insert accepts lists (#14175) 2024-10-29 06:32:55 -05:00
strings update unicode-width to 0.2 (#14456) 2024-11-29 09:09:45 +08:00
system Make Hooks fields non-optional to match the new config defaults (#14345) 2024-11-29 21:11:09 +00:00
viewers remove terminal_size crate everywhere it makes sense (#14423) 2024-11-23 19:37:12 -08:00
default_context.rs Implement chunk_by operation (#14410) 2024-11-29 13:37:27 -08:00
example_test.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
progress_bar.rs Cut down unnecessary lint allows (#14335) 2024-11-15 19:24:39 +01:00
sort_utils.rs Rework sorting and add cell path and closure comparators to sort-by (#13154) 2024-10-09 19:18:16 -07:00