tabUtil.lua library for use with Picotron
Contains useful functions for working with tables
Install with load #base64 and run it with crtl+r
A new file will be created /appdata/system/lib/tabUtil.lua
I personally love to use tabUtil.toString(#Table), its handy for debugging
Contains 3 functions, Usage Below
include("/appdata/system/lib/tabUtil.lua") myTable = { name="Microsoft", employees={"Bill Gates", "Some Dude"}, myFunction=function () print("Im a function") end, } meSecondTable = tabUtil.shallowCopy(myTable) myTable = {} print(tabUtil.getKeyCount(meSecondTable)) print(tabUtil.toString(meSecondTable)) |
This prints out the following
Verion 0 - Initial release
dynInclude compatible: https://www.lexaloffle.com/bbs/?tid=141042
[Please log in to post a comment]