Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

pprint

pprint( 
g_value 
[ p_outputPort ] 
) 
=> nil

Description

Identical to print except that it pretty prints the value whenever possible.

The pprint function is useful, for example, when printing out a long list where print prints the list on one (possibly huge) line but pprint limits the output on a single line and produces a multiple line printout if necessary. This output is much more readable.

pprint does not work the same as the pp function. pp is an nlambda and only takes a function name whereas pprint is a lambda and takes an arbitrary SKILL object.

Arguments

g_value

Any SKILL value to be printed.

p_outputPort

Output port to print to. Default is poport.

Value Returned

nil

Prints the argument value (to the given port).

Examples

pprint '(1 2 3 4 5 6 7 8 9 0 a b c d e f g h i j k) 
(1 2 3 4 5
6 7 8 9 0
a b c d e
f g h i j
k
)
=> nil

Related Topics

print


Return to top
 ⠀
X