pp
pp(s_functionName[p_outputPort] ) =>nil
Description
Pretty prints the definition of a function. The function must not be read-protected. This is an nlambda function.
Each function definition is printed in a manner that allows it to be read back into SKILL. pp does not evaluate its first argument but does evaluate the second argument, if given.
Arguments
Value Returned
Examples
Defines the factorial function fac then pretty prints it to poport.
procedure(fac(n) if(n <= 1 1 n*fac(n-1)))=> fac
pp fac
procedure(fac(n)
if((n <= 1) 1
(n * fac(n - 1))
)
)
=> nil
Related Topics
Return to top