Moses And Allen, Lua Tools for Tables and Strings

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Moses And Allen, Lua Tools for Tables and Strings

Post by Roland_Yonaba »

Hi folks,

Just wanted to share with you these two utility libraries i've been working on the past days.

Moses is a utility library to manipulate tables in Lua.
Allen stands for the same purposes, but was designed for strings.

A full documentation and usage examples are given on their respective projects pages on Github.

Credits and thanks:
Those libraries were heavily inspired by Javascript Underscore.js (by Jeremy Ashkenas) and Underscore.string (by Edward Tsech and Esa-Matti Suuronen).
Credits to Underscore.lua (by Marcus Irven).
Also, thanks to Kikito who proposed the names Moses, and Allen... :awesome:
Any feedback, comment or contribution would be highly appreciated. Thanks in advance!
Links:
Moses on Github
Allen on Github
Last edited by Roland_Yonaba on Mon Jul 30, 2012 1:10 pm, edited 1 time in total.
User avatar
dreadkillz
Party member
Posts: 223
Joined: Sun Mar 04, 2012 2:04 pm
Location: USA

Re: Moses And Alles, Lua Tools for Tables and Strings

Post by dreadkillz »

New toys! Will save just in case the need arises. Thanks
Elena5
Prole
Posts: 21
Joined: Sat Jun 18, 2011 6:53 pm

Re: Moses And Alles, Lua Tools for Tables and Strings

Post by Elena5 »

Great job !

Just one thing. In this file : https://github.com/Yonaba/Allen/blob/ma ... _Tests.lua you are saying that '+' is commutative. But I don't think this is the case of your implementation, right?

Unless

Code: Select all

"hello " + "world" == "world" + "hello " == "hello world"
Which is not likely to happen. :crazy:
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Moses And Alles, Lua Tools for Tables and Strings

Post by Roland_Yonaba »

Elena5 wrote:Great job !
Just one thing. In this file : https://github.com/Yonaba/Allen/blob/ma ... _Tests.lua you are saying that '+' is commutative. But I don't think this is the case of your implementation, right?
Typo error. Thanks so much for pointing that out, i fixed it.
In the meanwhile, i am open to any new suggestions for new functions that one may find useful. Let's make this a contributive work!
Also, one may find some better/faster ways of implementing some of the functions provided. I'll be pleased to have their feedbacks ^^
Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests