Created
September 4, 2021 08:58
-
-
Save wader/2c828f960a5559ab2db68896142e6c47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def _chunk($size): | |
| ( range( | |
| ( (length / $size) | ceil | |
| | if . == 0 then 1 end | |
| ) | |
| ) as $i | |
| | .[$i * $size:($i + 1) * $size] | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment