Partes de tamanho N

Divida uma string em partes consecutivas de tamanho n. Se a string não for dividida exatamente, mantenha os caracteres restantes como a parte final.

Exemplos

Program.Partition("chew", 2) ➞ new[] { "ch", "ew" }

Program.Partition("thematic", 4) ➞ new[] { "them", "atic" }

Program.Partition("c++", 2) ➞ new[] { "c+", "+" }