Skip to content

StringPartition

Splits a string into consecutive chunks of a given length.

$ wo 'StringPartition["abcdef", 2]'
{ab, cd, ef}