Go to the first, previous, next, last section, table of contents.

### `print`

`print(obj [,nl])`
  :: Displays (or outputs) obj.

return
  0
obj
  arbitrary
nl
  flag (arbitrary)

- Displays (or outputs) obj.
- It normally adds linefeed code to cause the cursor moving to the next line. If 0 or 2 is given as the second argument, it does not add a linefeed. If the second argument is 0, the output is simply written in the buffer. If the second argument is 2, the output is flushed.
- The return value of this function is 0. If command `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. )
- Formatted outputs are not currently supported. If one wishes to output multiple objects by a single `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.