F# Snippet: sequence partitioning
This F# Snippet illustrates a way to divide a sequence into a sequence of shorter sequences of a fixed length. The snippet uses list comprehensions. I don’t like it, because it involves flipping through the original sequence over and over and over. With recursion, we can do all the construction in one pass through the … Read moreF# Snippet: sequence partitioning