-
-
Notifications
You must be signed in to change notification settings - Fork 0
Utils
admin edited this page Jun 16, 2021
·
3 revisions
import "github.com/digital-technology-agency/math/pkg/utils"
inputData := []int{1, 2, 3, 4, 5, 6, 7}
chunks := utils.SliceToChunk(inputData, 3)
/*chunks: [[1 2 3] [4 5 6] [7]]*/