print
print(rat);
is performed at the top level,
first the value of rat will be printed,
followed by a linefeed, followed by a 0 which is the value of the
function and followed by a linefeed and the next prompt.
(If the command is terminated by a `$', e.g., print(rat)$
,
The last 0 will not be printed. )
print()
command,
use list like [obj1,...]
, which is not so beautiful, but
convenient to minimize programming efforts.
[8] def cat(L) { while ( L != [] ) { print(car(L),0); L = cdr(L);} print(""); } [9] cat([xyz,123,"gahaha"])$ xyz123gahaha
Go to the first, previous, next, last section, table of contents.