SplitArray
1.0.2
Splits an array into sub-arrays (chunks) with a configurable distribution strategy (Greedy/Even), optional padding, and pipeline support.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) Rene Kreisbeck. All rights reserved.
Package Details
Author(s)
- Rene Kreisbeck
Tags
Array Chunk Split Partition Utility Batch
Functions
PSEditions
Dependencies
This module has no dependencies.
Release Notes
1.0.2
- Infrastructure only: releases are now driven by version tags (with tests and a
tag/version check before publishing), CI lints more strictly, and the README
carries the Gallery version badge.
- No functional changes.
1.0.1
- Documentation only: installation instructions now point to the PowerShell Gallery.
- No functional changes.
1.0.0
- Initial release.
- Split-Array: splits an array into chunks by -ChunkSize (elements per chunk) or -MaxChunk (number of chunks).
- -Distribution parameter (Greedy/Even) controls how the remainder is spread across chunks.
- -Pad parameter fills the last chunk up to full size with a given value.
- Pipeline support.
- Empty input yields one empty chunk (by design).
FileList
- SplitArray.nuspec
- SplitArray.psm1
- Public\Split-Array.ps1
- Private\Add-PadToLastChunk.ps1
- SplitArray.psd1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.2 (current version) | 6 | 7/20/2026 |
| 1.0.1 | 11 | 7/20/2026 |
| 1.0.0 | 4 | 7/20/2026 |