Log In  

Cart #vdmplua-3 | 2023-04-27 | Code ▽ | Embed ▽ | No License
1

Feature Overview

  • DMP() prints values, table internals.
  • Stop the routine.
  • Clear Screen.
  • Display the contents of the specified table.
  • The order in which the associative array table is displayed is undefined.
  • Use the left, right, up, and down keys to scroll the screen and check the contents.
  • This function consumes 168 Tokens.
local t={
 1
,str="string"
,obj={"o","b","j","e","c","t"}
,{{{}}}
,{nil,true,false,function()end}
}
dmp(t)

Symbol summary

#  Number
$  String
%  Boolean
*  Function(output only the "[Function]")
!  nil(table pairs() skips nil, so it is not shown.)
{} Table

This function is included in the KNUTIL library.

release note


v0.4

  • scrollable output.
  • exit with pause key.
  • additional colors for each type.
  • support for table display with 0 elements.
  • simplified line feed concatenation.

v0.3

  • fixed comment

v0.2

  • name change: [ vdmp->dmp ]
  • remove value for print position.
  • add the type identifier
    • before the table key.

v0.1

  • first release(vdmp)

P#60679 2019-01-08 14:10 ( Edited 2023-04-27 11:32)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-06-10 01:13:28 | 0.008s | Q:10