lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 13 February 2018 at 13:10, Alexander Schulz <aiqpost@yahoo.com> wrote:
> For the development of my little Lua library basexx<<1>> I needed a simple
> utility function that splits a string into an array table with substrings that
> have the same length.

Please don't do this! Don't split into a table to just iterate over
the table: use iterators and do it as a stream.

basexx leaves much performance on the table due to some decisions like
this, I've been meaning to send a PR, but haven't had time :(