Partition
Partition(list, n)partitions
listinto sublists of lengthn.
Partition(list, n, d)partitions
listinto sublists of lengthnwhich overlapdindices.
See
Examples
>> Partition({a, b, c, d, e, f}, 2){{a,b},{c,d},{e,f}}
>> Partition({a, b, c, d, e, f}, 3, 1){{a,b,c},{b,c,d},{c,d,e},{d,e,f}}
>> Partition({a, b, c, d, e}, 2){{a,b},{c,d}}Implementation status
- ✅ - full supported