This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Most pure lua print table functions I've seen have a problem with deep recursion and tend to cause a stack overflow when | |
going too deep. This print table function that I've written does not have this problem. It should also be capable of handling | |
really large tables due to the way it handles concatenation. In my personal usage of this function, it outputted 63k lines to | |
file in about a second. | |
The output also keeps lua syntax and the script can easily be modified for simple persistent storage by writing the output to | |
file if modified to allow only number, boolean, string and table data types to be formatted. | |
author: Alundaio (aka Revolucas) |