lua-users home
lua-l archive

Re: split() function

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


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

AltStyle によって変換されたページ (->オリジナル) /