Skip to content

str::chunks

chunks(str: String, size: Integer)

ParameterTypeDescription
strStringThe string to turn into chunks
sizeIntegerThe length of each chunk

Returns

(Generator) A list of string chunks.