Array.pieces()
Revision as of 20:51, 21 March 2024 by Joseph (talk | contribs) (→Array.pieces(PieceSize, GivenFunction))
Array.pieces(PieceSize, GivenFunction)
Split the array into pieces of PieceSize (starting at each element!), and apply the GivenFunction to each piece.
1..5.pieces(3)
| |||
| |||
| |||
| |||
|
1..5.pieces(3,SUM)
6 |
9 |
12 |
9 |
5 |