[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Expanding the standard library functions?
- From: Peter Aronoff <telemachus@...>
- Date: Sun, 24 Jan 2016 14:13:05 -0500
chuckiels2011@gmail.com wrote:
> Strings:
> - split (this one I think is much needed. I'm constently rewriting myself
> split functions).
>
> Tables:
> - any (the same as any? in Ruby)
> - join (same as split)
> - select (a filter function that can either accept a value or a function)
For what it's worth, I wrote rocks that provide some of what you want:
split: https://luarocks.org/modules/telemachus/split
table manipulation: https://luarocks.org/modules/telemachus/tableutils
Lua's own standard library provides table.concat which is effectively
Ruby's join method (http://www.lua.org/manual/5.3/manual.html#6.6).
If I were you, I would focus on writing (and sharing) libraries that add
the functionality you want, rather than asking for enlargements to Lua's
C core.
Best, P
--
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System