Module init

Print debugging module

Info:

  • Author: daelvn

Functions

mapM (f, ...) A map function with varargs.
doInstant () Sets instant printing (no virtual buffer) for stdout.
finspect (inspect, filter, depth, ...) Custom inspect functions with filters.
fprint (filter, ...) Filtered print.
filterKeywords (keywords, any) Matches a keyword list in a value.
fsprint (keywords, ...) Special case of fprint.
cfsprint (f, keywords, ...) Composable fsprint, to combine with other filtering functions.
color (format, ...) Custom color formatting function over ansicolors.

Tables

colorall Table with functions to format entire strings.


Functions

mapM (f, ...)
A map function with varargs. Curried function.

Parameters:

  • f function Transforming function.
  • ... Variables to map.

Returns:

    ... Variables applied to f.
doInstant ()
Sets instant printing (no virtual buffer) for stdout.
finspect (inspect, filter, depth, ...)
Custom inspect functions with filters. Curried function.

Parameters:

  • inspect function Inspect function.
  • filter function Filter function.
  • depth number Depth of the table.
  • ... Variables to inspect.

Returns:

    ... Inspected variables.
fprint (filter, ...)
Filtered print. Will not print if the string does not pass the filter.

Parameters:

  • filter function Filter function.
  • ... Variables to filter and print.
filterKeywords (keywords, any)
Matches a keyword list in a value. Curried function.

Parameters:

  • keywords table Keyword list.
  • any Value to be checked.
fsprint (keywords, ...)
Special case of fprint. Gets a list of keywords and won't print anything if at least one of the keywords appears in a string. Curried function.

Parameters:

  • keywords table Keyword list.
  • ... Variables to filter and print.
cfsprint (f, keywords, ...)
Composable fsprint, to combine with other filtering functions.

Parameters:

  • f function Function to compose filterKeywords with.
  • keywords table Keyword list.
  • ... Variables to filter and print.
color (format, ...)
Custom color formatting function over ansicolors. Curried function.

Parameters:

  • format table A table where the keys are substrings to color, and values are the format.
  • ... Strings to color.

Tables

colorall
Table with functions to format entire strings. Shares fields with ansicolors' formatting options. So colorall.red becomes (x) -> color ("%{red}" .. x)
generated by LDoc 1.4.6 Last updated 2019-09-09 02:48:16