mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
lib/util: add groupListBySize
Splits up a list into many sub-lists based on the given max-size. e.g. ```nix groupListBySize 2 [ 1 2 3 4 5 ] => [ [ 1 2 ] [ 3 4 ] [ 5 ] ] ```
This commit is contained in:
parent
693e749edb
commit
8f99c3953c
3 changed files with 61 additions and 0 deletions
|
@ -71,6 +71,7 @@ let
|
|||
concatNonEmptyLines
|
||||
emptyTable
|
||||
enableExceptInTests
|
||||
groupListBySize
|
||||
hasContent
|
||||
ifNonNull'
|
||||
listToUnkeyedAttrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue