[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: split() function
- From: Javier Guerra Giraldez <javier@...>
- Date: Mon, 21 Feb 2011 15:11:23 -0500
On Mon, Feb 21, 2011 at 3:03 PM, Steve Litt <slitt@troubleshooters.com> wrote:
> Coming from the Perl world, I found myself wanting the equivalent of Perl's
> split() function, so I made it.
that's a big part of 'the Lua way': want something? roll your own.
and, the nature of our community is that "there's no one size fits
all", so there are lots of small variations for common tasks :-)
sometimes it even becomes an informal contest, to create the most
elegant most corner-case-free code, and results in long wiki pages
that are good to reread from time to time.
specifically:
http://lua-users.org/wiki/SplitJoin
--
Javier