Page 1 of 1

Moses And Allen, Lua Tools for Tables and Strings

Posted: Tue Jul 24, 2012 10:00 am
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

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

Posted: Tue Jul 24, 2012 5:57 pm
by dreadkillz
New toys! Will save just in case the need arises. Thanks

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

Posted: Thu Jul 26, 2012 8:37 am
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:

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

Posted: Mon Jul 30, 2012 10:41 am
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 ^^