You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prints its parameter to the execution output in a pretty way.
This function does the same as print but is able to pretty-print tables.
Prototype:
pprint(...)
Parameters:
...: Variadic parameters to print.
Remarks:
This function takes variadic parameters, which means it can take from 0 to n parameters.
All parameters are converted to string as if tostring (with the second parameter set to true) was called on them before passing them to this function.
When called with more than one argument, each printed argument will be separated by a tabulation (\t character)
Example code
-- Prints "Hello world" to the outputpprint("Hello world")
-- Prints "true 1.24 str vec2(10, 20)" to the outputpprint(true, 1.24, "str", Vec2(10, 20))
--[[Prints the table content:{ 1 = Hello 2 = World key = value}]]pprint({ "Hello", "World", key="value" })