从数组中获取6个元素的块 - Swift

时间:2015-02-24 06:01:28

标签: ios arrays swift dollar.swift

这可能有一个简单的答案,但我似乎无法找到它, 基本上我希望能够将阵列分成六个阵列的块,我似乎无法找到任何简单的方法。

我一直在使用https://github.com/ankurp/Dollar.swift

中的方法
$.partitionAll(arrayToSplit, n:6, step: 6)

哪个效果很好,但我的应用只能在iOS8上使用

0 个答案:

没有答案