Difference between revisions of "Array.pieces()"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 69: | Line 69: | ||
| 5 | | 5 | ||
|} | |} | ||
| + | |||
| + | == See Also == | ||
| + | [[Array.chunks()| chunks]] | ||
| + | |||
| + | [[Array.parts()| parts]] | ||
Latest revision as of 20:52, 21 March 2024
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 |