Back to home

data-structures/

go-array-chunk

Version: 0.0.1

Last Updated: Unknown


Array Chunk problem

Given an array and chunk size, divide the array into many subarrays where each subarray is of length size.

Examples

chunk([1, 2, 3, 4], 2); // returns [[1,2], [3,4]]

Install


Repository

https://github.com/okeeffed/pkg-data-structures-go-array-chunk

Sections