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
. But you are right.
Secondly, the
Iterators.partitionis tricking you, it is a lazy data structure that doesn’t do any real work, until you startcollecting orjoining 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