534 bytes added
, 21:05, 4 March 2017
==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)
{| class="wikitable"|-
|
{| class="wikitable"|-
| 1
|-
| 2
|-
| 3
|}
|-
|
{| class="wikitable"|-
| 2
|-
| 3
|-
| 4
|}
|-
|
{| class="wikitable"|-
| 3
|-
| 4
|-
| 5
|}
|-
|
{| class="wikitable"|-
| 4
|-
| 5
|}
|-
|
{| class="wikitable"|-
| 5
|}
|}
1..5.pieces(3,SUM)
{| class="wikitable"|-
| 6
|-
| 9
|-
| 12
|-
| 9
|-
| 5
|}