I like extending the options available in the included table functions to make certain behaviors easier to accomplish. And since I already have them on hand, I might as well share them, in case anyone else has a use for them.
This function lets you use table functions as methods of whatever table you pass it. Also, if you pass it multiple arguments, it forms them into a table that can be used this way and returns it. This will preserve the existing metatable for the table you pass it, if there is on, changing only the __index element.
This one rounds down.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests