lua-users home
lua-l archive

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


On 2009-12-27, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Thu, Dec 24, 2009 at 8:48 PM, David Manura <dm.lua@math2.org> wrote:
>  > to misimplement.  I don't generally trust the code in [1] as is.
>  > Behavior of corner cases (e.g. empty patterns and treatment of empty
>  > leading and trailing matches) needs to be fully given in the
>  > specifications and confirmed in test cases.
>
>
> Here's a first draft of what that split function looks like with a few
>  sanity checks:
>

There is very clever split function implementation by Rici Lake

http://lua-users.org/lists/lua-l/2006-12/msg00414.html

Very concise and powerful.

--Leo--