articles
articles copied to clipboard
zipWith question: drop in splitMiddle
This is a question about your zipWith article.
In your implementation of splitMiddle, did you use
secondHalf = zipOverflow firstHalf xs
instead of something like
secondHalf = drop (length firstHalf) xs
because the former only enumerates once while the second enumerates twice?