Splitting a list to chunks of specified lengths #
This file defines splitting a list to chunks of given lengths, and some proofs about that.
Split a list to chunks of given lengths.
Equations
- [].splitLengths x✝ = []
- (n :: ns).splitLengths x✝ = match List.splitAt n x✝ with | (x0, x1) => x0 :: ns.splitLengths x1
Instances For
@[simp]