Efficient way to split string at specific index

your own functions are as fast as the ‘built-in’ ones, as long as you write them in a reasonable way

I just trust that people developing core Julia are a bit more reasonable than I am :slight_smile: . But you are right.

Secondly, the Iterators.partition is tricking you, it is a lazy data structure that doesn’t do any real work, until you start collecting or joining it.

Given what you said, I can restate my question : Why does collect(Iterators.partition(str::String, n::Integer))) not return Vector{String} instead of Vector{Vector{Char}}

EDIT: Took @DNF comment into account