home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / xlisp / xl21freq.zip / GLOS.TXT < prev    next >
Text File  |  1993-12-17  |  128KB  |  2,721 lines

  1. .t - boolean value "true" is constant with value t.
  2.  
  3. .self -  within a method  context, the  current object  (see page  19),
  4.      otherwise initially unbound.
  5.  
  6. .object - constant, value is the class 'Object.'
  7.  
  8. .class - constant, value is the class 'Class'.
  9.  
  10. .internal-time-units-per-second  - integer constant  to divide returned
  11.      times by to get time in seconds.
  12.  
  13. .pi - floating  point aproximation  of pi (constant  defined when  math
  14.      extension is compiled).
  15.  
  16. .*obarray* - the  object hash table. Length  of array is  a compilation
  17.      option. Objects are hashed using the hash function and are placed on a
  18.      list in the appropriate array slot. This variable does note exist when
  19.      the package feature is compiled in.
  20.  
  21. .*package*  - the current  package. Do not  alter. Part of  the package
  22.      feature.
  23.  
  24. .*terminal-io* - stream bound to keyboard and display. Do not alter.
  25.  
  26. .*standard-input*  - the  standard  input stream,  initially stdin.  If
  27.      stdin is not  redirected on  the command line,  then *terminal-io*  is
  28.      used so that all interactive i/o uses the same stream.
  29.  
  30. .*standard-output* -  the standard output stream,  initially stdout. If
  31.      stdout is not  redirected on  the command line  then *terminal-io*  is
  32.      used so that all interactive i/o uses the same stream.
  33.  
  34. .*error-output* - the error output stream (used by all error messages),
  35.      initially same as *terminal-io*.
  36.  
  37. .*trace-output* - the trace output stream (used by the trace function),
  38.      initially same as *terminal-io*.
  39.  
  40. .*debug-io*   -  the  break   loop  i/o   stream,  initially   same  as
  41.      *terminal-io*. System messages  (other than error messages) also print
  42.      out on this stream.
  43.  
  44. .*breakenable* -  flag controlling entering  break loop on  errors (see
  45.      page 4)
  46.  
  47. .*tracelist* -  list of names  of functions to  trace, as set  by trace
  48.      function.
  49.  
  50. .*tracenable* - enable trace back printout on errors (see page 4).
  51.  
  52. .*tracelimit*  - number of levels  of trace back  information (see page
  53.      4).
  54.  
  55. .*evalhook* - user substitute  for the evaluator function (see  page 8,
  56.      and evalhook and applyhook functions).
  57.  
  58. .*applyhook* -  user substitute for  function application (see  page 8,
  59.      and evalhook and applyhook functions).
  60.  
  61. .*readtable* - the current readtable (see page 12).
  62.  
  63. .*gc-flag*  - controls  the printing  of gc  messages. When  non-NIL, a
  64.      message  is printed  after each  garbage collection  giving  the total
  65.      number of nodes and the number of nodes free.
  66.  
  67. .*gc-hook* - function to call after garbage collection (see page 8).
  68.  
  69. .*integer-format* - format for  printing integers (when not bound  to a
  70.      string, defaults to "%d" or "%ld" depending on implementation)
  71.  
  72. .*ratio-format*  -  format for  printing ratios  (when  not bound  to a
  73.      string, defaults to "%d/%d" or "%ld/%ld" depending on implementation)
  74.  
  75. .*float-format*  -  format for  printing floats  (when  not bound  to a
  76.      string, defaults to "%g")
  77.  
  78. .*readtable-case*  - symbol  read  and output  case.  See page  14  for
  79.      details
  80.  
  81. .*print-case*  -  symbol output  case when  printing.  See page  14 for
  82.      details
  83.  
  84. .*print-level* - When bound to a number, list levels  beyond this value
  85.      are printed as '#'. Used by all printing functions. Good precaution to
  86.      avoid getting caught in circular lists.
  87.  
  88. .*print-length* - When bound  to a number, lists longer than this value
  89.      are  printed as '...'. Used by all printing functions. Good precaution
  90.      to avoid getting caught in circular lists.
  91.  
  92. .*dos-input* - When not NIL, uses dos line input function for read (see
  93.      page 3).
  94.  
  95. .*displace-macros*  -  When  not  NIL,  macros  are  replaced  by their
  96.      expansions when exectuted (see page 7).
  97.  
  98. .*random-state* - the default random-state used by the random function.
  99.  
  100. .*features* - list of features, initially (:xlisp), used for  #+ and #-
  101.      reader macros.
  102.  
  103. .*startup-functions*  - list of functions to be executed when workspace
  104.      started
  105.  
  106. .*command-line* -  the xlisp  command line,  in the form  of a  list of
  107.      strings, one string per argument.
  108.  
  109. .*load-file-arguments* - When  not NIL, file  arguements are loaded  at
  110.      startup.
  111.  
  112. .*top-level-loop* - Top  level loop to utilize,  defaults to TOP-LEVEL-
  113.      LOOP. Note that this function can  only be restarted by executing TOP-
  114.      LEVEL, and it never exits.
  115.  
  116. .*read-suppress* - When non-nil, inhibits certain parts of reading. Used
  117.      by the #+ and #- macroes.
  118.  
  119. .+ 
  120. .++ 
  121. .+++ 
  122. .* 
  123. .** 
  124. .*** 
  125. There  are  several symbols  maintained  by the  read/eval/print  loop. The
  126. symbols  '+', '++',  and '+++'  are bound  to the  most recent  three input
  127. expressions. The symbols '*', '**'  and '***' are bound to the  most recent
  128. three results.  The symbol '-' is  bound to the expression  currently being
  129. evaluated. It becomes the value of '+' at the end of the evaluation.
  130.  
  131. (eval <expr>)                                  EVALUATE AN XLISP EXPRESSION
  132.      <expr>    the expression to be evaluated
  133.      returns   the result of evaluating the expression
  134.  
  135. (apply <fun> <arg>...<args>)        APPLY A FUNCTION TO A LIST OF ARGUMENTS
  136.      <fun>     the function to apply (or function symbol). May not be macro
  137.                or fsubr.
  138.      <arg>     initial arguments, which are CONSed to...
  139.      <args>    the argument list
  140.      returns   the result of applying the function to the arguments
  141.  
  142. (funcall <fun> <arg>...)                     CALL A FUNCTION WITH ARGUMENTS
  143.      <fun>     the  function to call (or function symbol). May not be macro
  144.                or fsubr.
  145.      <arg>     arguments to pass to the function
  146.      returns   the result of calling the function with the arguments
  147.  
  148. (quote <expr>)                             RETURN AN EXPRESSION UNEVALUATED
  149.      fsubr
  150.      <expr>    the expression to be quoted (quoted)
  151.      returns   <expr> unevaluated
  152.  
  153. (function <expr>)                         GET THE FUNCTIONAL INTERPRETATION
  154.      fsubr
  155.      <expr>    the symbol or lambda expression (quoted)
  156.      returns   the functional interpretation
  157.  
  158. (complement <fun>)                            MAKE A COMPLEMENTARY FUNCTION
  159.      This  function is intended to eliminate the need for -IF-NOT functions
  160.      and :TEST-NOT keys by providing a way to make complementary functions.
  161.      <fun>     the function or closure (not macro or fsubr)
  162.      returns   a new function closure that returns NOT of the result of the
  163.                original function.
  164.  
  165. (identity <expr>)                                     RETURN THE EXPRESSION
  166.      <expr>    the expression
  167.      returns   the expression
  168.  
  169. (backquote <expr>)                                       FILL IN A TEMPLATE
  170.      fsubr. Note: an improved backquote facility, which works properly when
  171.      nested, is available by loading the file backquot.lsp.
  172.      <expr>    the template (quoted)
  173.      returns   a copy of  the template with comma  and comma-at expressions
  174.                expanded.
  175.  
  176. (comma <expr>)                                             COMMA EXPRESSION
  177.      (Never  executed)  As   the  object  of  a  backquote  expansion,  the
  178.      expression is evaluated and becomes an object in the enclosing list.
  179.  
  180. (comma-at <expr>)                                       COMMA-AT EXPRESSION
  181.      (Never  executed)   As  the  object  of  a  backquote  expansion,  the
  182.      expression is  evaluated (and  must evaluate  to a  list) and  is then
  183.      spliced into the enclosing list.
  184.  
  185. (lambda <args> <expr>...)                           MAKE A FUNCTION CLOSURE
  186.      fsubr
  187.      <args>    formal argument list (lambda list) (quoted)
  188.      <expr>    expressions of the function body (quoted)
  189.      returns   the function closure
  190.  
  191. (get-lambda-expression <closure>)                 GET THE LAMBDA EXPRESSION
  192.      <closure> the closure
  193.      returns   the original  lambda expression,  or NIL  if not  a closure.
  194.                Second  return  value  is  T  if closure  has  a  non-global
  195.                environment, and the third  return value is the name  of the
  196.                closure.
  197.  
  198. (macroexpand <form>)                         RECURSIVELY EXPAND MACRO CALLS
  199.      <form>    the form to expand
  200.      returns   the macro expansion
  201.  
  202. (macroexpand-1 <form>)                                  EXPAND A MACRO CALL
  203.      <form>    the macro call form
  204.      returns   the macro expansion
  205.  
  206. (multiple-value-bind <varlist> <vform> [<form>...])
  207.                                       BIND RETURN VALUES INTO LOCAL CONTEXT
  208.      defined as macro in common.lsp
  209.      <vform>   form to be evaluated
  210.      <varlist> list of variables to bind to return values of vform
  211.      <form>    forms  evaluated   sequentially,  as  in  LET,  using  local
  212.                bindings
  213.      returns   values of last form evaluated, or NIL if no forms
  214.  
  215. (multiple-value-call <fun> <form> ...)    COLLECT VALUES AND APPLY FUNCTION
  216.      fsubr
  217.      <fun>     function to apply
  218.      <form>    forms, which are evaluated, with result values collected
  219.      returns   result of applying fun to all of  the returned values of the
  220.                forms
  221.  
  222. (multiple-value-list <form>)   COLLECT MULTIPLE RETURNED VALUES INTO A LIST
  223.      defined as macro in common.lsp
  224.      <form>    form to be evaluated
  225.      returns   list of returned values
  226.  
  227. (multiple-value-prog1 <form> [<form> ...])      RETURN VALUES OF FIRST FORM
  228.      fsubr
  229.      <form>    one or more forms, which are evaluated sequentially
  230.      returns   the result values of the first form
  231.  
  232. (multiple-value-setq <varlist> <form>)      BIND RETURN VALUES TO VARIABLES
  233.      defined as macro in common.lsp
  234.      <form>    form to be evaluated
  235.      <varlist> list of variables to bind to return values of form
  236.      returns   (undefined, implementation dependent)
  237.  
  238. (nth-value <index> <form>)                           EXTRACT A RETURN VALUE
  239.      fsubr
  240.      <index>   index into return values
  241.      <form>    form which gets evaluated
  242.      returns   the nth result value of exectuing the form
  243.  
  244. (values [<expr>])                                    RETURN MULTIPLE VALUES
  245.      <expr>    expression(s) to be evaluated
  246.      returns   each argument as a separate value
  247.  
  248. (values-list <list>)                       RETURN MULTIPLE VALUES FROM LIST
  249.      defined in common.lsp
  250.      <list>    a list
  251.      returns   each list element as a separate value
  252.  
  253. (set <sym> <expr>)                         SET THE GLOBAL VALUE OF A SYMBOL
  254.      <sym>     the symbol being set
  255.      <expr>    the new value
  256.      returns   the new value
  257.  
  258. (setq [<sym> <expr>]...)                          SET THE VALUE OF A SYMBOL
  259.      fsubr
  260.      <sym>     the symbol being set (quoted)
  261.      <expr>    the new value
  262.      returns   the last new value or NIL if no arguments
  263.  
  264. (psetq [<sym> <expr>]...)                          PARALLEL VERSION OF SETQ
  265.      fsubr. All  expressions are evaluated before  any assignments are
  266.      made.
  267.      <sym>     the symbol being set (quoted)
  268.      <expr>    the new value
  269.      returns   NIL
  270.  
  271. (setf [<place> <expr>]...)                         SET THE VALUE OF A FIELD
  272.      fsubr
  273.      <place> the field specifier  (if a macro it is expanded, then the form
  274.              arguments are evaluated):
  275.              <sym>                 set value of a symbol
  276.              (car <expr>)          set car of a cons node
  277.              (cdr <expr>)          set cdr of a cons node
  278.              (nth <n> <expr>)      set nth car of a list
  279.              (aref <expr> <n>)     set nth element of an array or string
  280.              (elt <expr> <n>)      set nth element of a sequence
  281.              (get <sym> <prop> [<dflt>])     set   value   of  a   symbol's
  282.                                              property
  283.              (getf <pl> <prop> [<dflt>])     set value of a  property. <pl>
  284.                                              must   be    a   valid   field
  285.                                              specifier.
  286.              (symbol-value <sym>)  set global value of a symbol
  287.              (symbol-function <sym>)         set  functional   value  of  a
  288.                                              symbol
  289.              (symbol-plist <sym>)  set property list of a symbol
  290.              (gethash <key> <tbl> <def>)     add  or   replace  hash  table
  291.              entry. <def> is ignored
  292.              (send <obj> :<ivar>)  (When  classes.lsp  used), set  instance
  293.                                    variable of object.
  294.              (<sym>-<element> <struct>)      set  the element  of structure
  295.                                              struct, type sym.
  296.              (<fieldsym> <args>)   the function stored  in property  *setf*
  297.                                    in  symbol  <fieldsym>  is   applied  to
  298.                                    (<args> <expr>). As an  alternative, the
  299.                                    function     stored      in     property
  300.                                    *setf-lambda*    is  applied,  then  the
  301.                                    result is evaled in the current context.
  302.      <expr>  the new value
  303.      returns the last new value, or NIL if no arguments
  304.  
  305. (psetf [<place> <expr>]...)                        PARALLEL VERSION OF SETF
  306.      fsubr. All  expressions are evaluated  and macro place  forms expanded
  307.      before any assignments are made.
  308.      <place>   the field specifier (see SETF, above)
  309.      <expr>    the new value
  310.      returns   NIL
  311.  
  312. (defsetf <sym> <fcn>)                         DEFINE A SETF FIELD SPECIFIER
  313. (defsetf <sym> <fargs> (<value>) <expr>...)
  314.      Defined  as macro  in common.lsp.  Convenient, Common  Lisp compatible
  315.      alternative to setting *setf* or *setf-lambda* property directly.
  316.      <sym>     field specifier symbol (quoted)
  317.      <fcn>     function  to  use  (quoted  symbol)  which  takes  the  same
  318.                arguments as the field specifier plus an additional argument
  319.                for the value. The value must be returned.
  320.      <fargs>   formal argument list of unevaluated arguments (lambda  list)
  321.                (quoted)
  322.      <value>   symbol bound to value to store (quoted).
  323.      <expr>    The last expression  must an expression  to evaluate in  the
  324.                setf  context.In this  respect, defsetf  works like  a macro
  325.                definition.
  326.      returns   the field specifier symbol
  327.  
  328. (push  <expr> <place>)                                      CONS TO A FIELD
  329.      Defined as macro  in common.lsp. Only  evaluates place form  arguments
  330.      one time. It is recommended that *displace-macros* be non-NIL for best
  331.      performance.
  332.      <place>   field specifier being modified (see setf)
  333.      <expr>    value to cons to field
  334.      returns   the new value which is (CONS <expr> <place>)
  335.  
  336. (pushnew <expr> <place> &key :test :test-not :key)      CONS NEW TO A FIELD
  337.      Defined  as macro in  common.lsp. Only evaluates  place form arguments
  338.      one time. It is recommended that *displace-macros* be non-NIL for best
  339.      performance.
  340.      <place>   field specifier being modified (see setf)
  341.      <expr>    value to cons to field, if not already MEMBER of field
  342.      :test     the test function (defaults to eql)
  343.      :test-not the test function (sense inverted)
  344.      :key      function to  apply to test function  list argument (defaults
  345.                to identity)
  346.      returns   the new value which is (CONS <expr> <place>) or <place>
  347.  
  348. (pop <place>)                               REMOVE FIRST ELEMENT OF A FIELD
  349.      Defined  as macro in  common.lsp. Only evaluates  place form arguments
  350.      one time. It is recommended that *displace-macros* be non-NIL for best
  351.      performance.
  352.      <place>   the field being modified (see setf)
  353.      returns   (CAR <place>), field changed to (CDR <place>)
  354.  
  355. (incf <place> [<value>])                                  INCREMENT A FIELD
  356. (decf <place> [<value>])                                  DECREMENT A FIELD
  357.      Defined as  macro in common.lsp.  Only evaluates place  form arguments
  358.      one time. It is recommended that *displace-macros* be non-NIL for best
  359.      performance.
  360.      <place>   field specifier being modified (see setf)
  361.      <value>   Numeric value (default 1)
  362.      returns   the new value  which is  (+ <place> <value>)  or (-  <place>
  363.                <value>)
  364.  
  365. (defun <sym> <fargs> <expr>...)                           DEFINE A FUNCTION
  366. (defmacro <sym> <fargs> <expr>...)                           DEFINE A MACRO
  367.      fsubr
  368.      <sym>     symbol being defined (quoted)
  369.      <fargs>   formal argument list (lambda list) (quoted)
  370.      <expr>    expressions constituting the body of the function (quoted)
  371.      returns   the function symbol
  372.  
  373. (gensym [<tag>])                                          GENERATE A SYMBOL
  374.      <tag>     string or number
  375.      returns   the new symbol, uninterned
  376.  
  377. (intern <pname> [<package>])                        MAKE AN INTERNED SYMBOL
  378.      <pname>   the symbol's print name string
  379.      <package> the package (defaults to current package)
  380.      returns   the new symbol.  A second value is returned which  is NIL if
  381.                the symbol did not pre-exist, :internal if it is an internal
  382.                symbol, :external if it is an external symbol, or :inherited
  383.                if it inherited via USE-PACKAGE.
  384.  
  385. (make-symbol <pname>)                             MAKE AN UNINTERNED SYMBOL
  386.      <pname>   the symbol's print name string
  387.      returns   the new symbol
  388.  
  389. (symbol-name <sym>)                          GET THE PRINT NAME OF A SYMBOL
  390.      <sym>     the symbol
  391.      returns   the symbol's print name
  392.  
  393. (symbol-value <sym>)                              GET THE VALUE OF A SYMBOL
  394.      <sym>     the symbol
  395.      returns   the symbol's value
  396.  
  397. (symbol-function <sym>)                GET THE FUNCTIONAL VALUE OF A SYMBOL
  398.      <sym>     the symbol
  399.      returns   the symbol's functional value
  400.  
  401. (symbol-plist <sym>)                      GET THE PROPERTY LIST OF A SYMBOL
  402.      <sym>     the symbol
  403.      returns   the symbol's property list
  404.  
  405. (hash <expr> <n>)                                    COMPUTE THE HASH INDEX
  406.      <expr>    the object to hash
  407.      <n>       the table size (positive integer)
  408.      returns   the hash index (integer 0 to n-1)
  409.  
  410. (makunbound <sym>)                           MAKE A SYMBOL VALUE BE UNBOUND
  411.      You cannot unbind constants.
  412.      <sym>     the symbol
  413.      returns   the symbol
  414.  
  415. (fmakunbound <sym>)                       MAKE A SYMBOL FUNCTION BE UNBOUND
  416.      <sym>     the symbol
  417.      returns   the symbol
  418.  
  419. (unintern <sym> [<package>])                              UNINTERN A SYMBOL
  420.      Defined in common.lsp if package feature not compiled.
  421.      <sym>     the symbol
  422.      <package> the package to look in for the symbol
  423.      returns   t if successful, NIL if symbol not interned
  424.  
  425. (defconstant <sym> <val> [<comment>])                     DEFINE A CONSTANT
  426.      fsubr.
  427.      <sym>     the symbol
  428.      <val>     the value
  429.      <comment> optional comment string (ignored)
  430.      returns   the value
  431.  
  432. (defparameter <sym> <val> [<comment>])                   DEFINE A PARAMETER
  433.      fsubr.
  434.      <sym>     the symbol
  435.      <val>     the value
  436.      <comment> optional comment string (ignored)
  437.      returns   the value
  438.  
  439. (defvar <sym> [<val> [<comment>]])                        DEFINE A VARIABLE
  440.      fsubr. Variable only initialized if not previously defined.
  441.      <sym>     the symbol
  442.      <val>     the initial value, or NIL if absent.
  443.      <comment> optional comment string (ignored)
  444.      returns   the current value
  445.  
  446. (mark-as-special <sym> [<flag>])                      SET SPECIAL ATTRIBUTE
  447.      Also see definition of PROCLAIM and DECLARE.
  448.      <sym>     symbol to mark
  449.      <flag>    non-nil to make into a constant
  450.      returns   nil,  with  symbol  marked  as  special  and  possibly as  a
  451.                constant.
  452.  
  453. (declare [<declaration> ...])                   DECLARE ARGUMENT ATTRIBUTES
  454.      Macro  in  common.lsp  provided  to  assist  in  porting  Common  Lisp
  455.      applications to XLISP-PLUS.
  456.      <declaration>       list of local variable and attributes
  457.      returns   nil, produces an error message if attribute SPECIAL is used.
  458.  
  459. (proclaim <proc>)                         PROCLAIM GLOBAL SYMBOL ATTRIBUTES
  460.      Function in  common.lsp  provided to  assist  in porting  Common  Lisp
  461.      applications to XLISP-PLUS.
  462.      <proc>    a list of  symbols. If the CAR of the  list is SPECIAL, then
  463.                the remaining symbols are marked as special variables.
  464.  
  465. (apropos <string> [<package>])                SEARCH SYMBOLS FOR NAME MATCH
  466. (apropos-list <string> [<package>])
  467.      Functions in common.lsp.
  468.      <string>  find symbols which contain this string as substring of print
  469.                name
  470.      <package> package to search, if absent, or NIL, search all packages
  471.      returns   apropos-list returns  list of symbols, apropos  prints them,
  472.                along with some information, and returns nothing.
  473.  
  474. (defpackage <package> [<option>...])                   (RE)DEFINE A PACKAGE
  475.      Macro in common.lsp. Use to define a package, or redefine a package.
  476.      <package> the name of the package to (re)define
  477.      <option>  any one or more of the following, none evaluated, applied in
  478.                this order:
  479.      (:shadow <symbol>...)
  480.                one or more symbols to shadow, as in function SHADOW
  481.      (:shadowing-import-from <symbol>...)
  482.                one   or   more   symbols   to  shadow,   as   in   function
  483.                SHADOWING-IMPORT
  484.      (:use <package>...)
  485.                one or more packages to "use", as in function USE-PACKAGE
  486.      (:import-from <package> <symbol>...)
  487.                one  or more  symbols  to import  from  the package,  as  in
  488.                function IMPORT
  489.      (:intern <symbol>...)
  490.                one  or  more  symbols to  be  located  or  created in  this
  491.                package, as in function INTERN
  492.      (:export <symbol>...)
  493.                one or more symbols to be exported from this package,  as in
  494.                function EXPORT
  495.      returns   the new or redefined package
  496.  
  497. (delete-package <package>)                                 DELETE A PACKAGE
  498.      Deletes  a package  by uninterning  all its  symbols and  removing the
  499.      package.
  500.      <package> package to delete
  501.      returns   T if successful
  502.  
  503. (do-symbols (<var> [<package> [<result>]]) <expr>...)) ITERATE OVER SYMBOLS
  504. (do-external-symbols (<var> [<package> [<result>]]) <expr>...)
  505. (do-all-symbols (<var> [<result>]) <expr>...)
  506.      Implemented  as macros  in  common.lsp. DO-SYMBOLS  iterates over  all
  507.      symbols in  a single  package, DO-EXTERNAL-SYMBOLS iterates  only over
  508.      the  external symbols, and DO-ALL-SYMBOLS iterates over all symbols in
  509.      all packages.
  510.      <var>     variable to bind to symbol
  511.      <package> the package to search
  512.      <result>  a single result form
  513.      <expr>    expressions to evaluate (implicit tag-body)
  514.      returns   result of result form, or NIL if not specified
  515.  
  516. (export <symbols> [<package>])                     DECLARE EXTERNAL SYMBOLS
  517.      <symbols> symbols to declare as external
  518.      <package> package symbol is in
  519.      returns   T
  520.  
  521. (find-all-symbols <string>)                FIND SYMBOLS WITH SPECIFIED NAME
  522.      <string>  string or symbol (if latter, print name string is used)
  523.      returns   list of all symbols having that print-name
  524.  
  525. (find-package <package>)                   FIND PACKAGE WITH SPECIFIED NAME
  526.      <package> package to find
  527.      returns   package with name or nickname <package>, or NIL if not found
  528.  
  529. (find-symbol <string> [<package>])                         LOOK UP A SYMBOL
  530.      <string>  print name to search for
  531.      <package> package to search in
  532.      returns   two values, the first being the symbol, and the second being
  533.                :internal  if  the  symbol   is  internal  in  the  package,
  534.                :external  if  it  is  external,  or  :inherited  if  it  is
  535.                inherited via USE-PACKAGE. If the symbol was not found, then
  536.                both return values are NIL.
  537.  
  538. (import <symbols> [<package>])                IMPORT SYMBOLS INTO A PACKAGE
  539.      <symbols> symbols to import (fully qualified names)
  540.      <package> package to import symbols into
  541.      returns   T
  542.  
  543. (in-package <package>)                                  SET CURRENT PACKAGE
  544.      FSUBR which sets the current package until next call or end of current
  545.      LOAD.
  546.      <package> the package to enter
  547.      returns   the package
  548.  
  549. (list-all-packages)                                   GET ALL PACKAGE NAMES
  550.      returns   list of all currently existing packages
  551.  
  552. (make-package <package> &key :nicknames :use)            MAKE A NEW PACKAGE
  553.      <package> name of new package to create
  554.      :nicknames          list of package nicknames
  555.      :use      list of packages to use (as in USE-PACKAGE)
  556.      returns   the new package
  557.  
  558. (package-name <package>)                            GET PACKAGE NAME STRING
  559.      <package> package name
  560.      returns   package name string
  561.  
  562. (package-nicknames <package>)                  GET PACKAGE NICKNAME STRINGS
  563.      <package> package name
  564.      returns   list of package nickname strings
  565.  
  566. (package-obarray <package> [<external>])                     GET AN OBARRAY
  567.      <package> package to use
  568.      <external>          non-nil  for  external   obarray,  else   internal
  569.                          obarray (default)
  570.      returns   the obarray (array of lists of symbols in package)
  571.  
  572. (package-shadowing-symbols <package>)         GET LIST OF SHADOWING SYMBOLS
  573.      <package> the package
  574.      returns   list of shadowing symbols in package
  575.  
  576. (package-use-list <package>)                 GET PACKAGES USED BY A PACKAGE
  577.      <package> the package
  578.      returns   list of packages used by this package (as in USE-PACKAGE)
  579.  
  580. (package-used-by-list <package>)         GET PACKAGES THAT USE THIS PACKAGE
  581.      <package> the package
  582.      returns   list of packages that use this package (as in USE-PACKAGE)
  583.  
  584. (package-valid-p <package>)                         IS THIS A GOOD PACKAGE?
  585.      <package> object to check
  586.      returns   T if a valid package, else NIL
  587.  
  588. (rename-package <package> <new> [<nick>])                  RENAME A PACKAGE
  589.      <package> original package
  590.      <new>     new package name (may be same as original name)
  591.      <nick>    list of new package nicknames
  592.      returns   the new package
  593.  
  594. (shadow <symbols> [<package>])                       MAKE SHADOWING SYMBOLS
  595.      If a symbol is not already in  the package, it is interned. The symbol
  596.      is placed in the shadowing symbols list for the package.
  597.      <symbols> the symbol or symbols to shadow
  598.      <package> package to put symbols in
  599.      returns   T
  600.  
  601. (shadowing-import <symbols> [<package>])          IMPORT SYMBOLS AND SHADOW
  602.      If a  symbol exists in the package, it is first uninterned. The symbol
  603.      is imported, and then made shadowing.
  604.      <symbols> the symbol or symbols to import and shadow
  605.      <package> package to put symbols in
  606.      returns   T
  607.  
  608. (symbol-package <symbol>)                      FIND THE PACKAGE OF A SYMBOL
  609.      <symbol>  the symbol
  610.      returns   the home package of the symbol, or NIL if none
  611.  
  612. (unexport <symbols> [<package>])           MAKE SYMBOLS INTERNAL TO PACKAGE
  613.      <symbols> symbol or symbols to make internal
  614.      <package> package for symbols
  615.      returns   T
  616.  
  617. (unuse-package <pkgs> [<package>])            REMOVE PACKAGES FROM USE LIST
  618.      <pkgs>    A single package or list of packages
  619.      <package> Package  in which  to  un-use packages  (default is  current
  620.                package)
  621.      returns   T
  622.  
  623. (use-package <pkgs> [<package>])                   ADD PACKAGES TO USE LIST
  624.      <pkgs>    A single package or list of packages
  625.      <package> Package  in which  to  use packages  in (default  is current
  626.                package)
  627.      returns   T
  628.  
  629. (get <sym> <prop> [<dflt>])            GET THE VALUE OF A SYMBOL'S PROPERTY
  630.      Use SETF with GET to add or change properties.
  631.      <sym>     the symbol
  632.      <prop>    the property name
  633.      <dflt>    value to return if property not found, default is NIL
  634.      returns   the property value or <dflt> if property doesn't exist.
  635.  
  636. (getf <place> <prop> [<dflt>])                  GET THE VALUE OF A PROPERTY
  637.      Use SETF with GETF to add or change  properties. (NOTE--when used with
  638.      SETF,  <place> must  be a valid  place form.  It gets  executed twice,
  639.      contrary to Common Lisp standard.)
  640.      <place>   where the property list is stored
  641.      <prop>    the property name
  642.      <dflt>    value to return if property not found, default is NIL
  643.      returns   the property value or <dflt> if property doesn't exist.
  644.  
  645. (putprop <sym> <val> <prop>)            PUT A PROPERTY ONTO A PROPERTY LIST
  646.      Modern practice is to use (SETF (GET...)...) rather than PUTPROP.
  647.      <sym>     the symbol
  648.      <val>     the property value
  649.      <prop>    the property name
  650.      returns   the property value
  651.  
  652. (remf <place> <prop>)                                     DELETE A PROPERTY
  653.      Defined as a macro in COMMON.LSP
  654.      <place>   where the property list is stored
  655.      <prop>    the property name
  656.      returns   T if property existed, else NIL
  657.  
  658. (remprop <sym> <prop>)                           DELETE A SYMBOL'S PROPERTY
  659.      <sym>     the symbol
  660.      <prop>    the property name
  661.      returns   NIL
  662.  
  663. (make-hash-table &key :size :test)                        MAKE A HASH TABLE
  664.      :size     size  of hash table -- should  be a prime number. Default is
  665.                31.
  666.      :test     comparison function. Defaults to eql.
  667.      returns   the hash table
  668.  
  669. (gethash <key> <table> [<def>])                     EXTRACT FROM HASH TABLE
  670.      See also gethash in SETF.
  671.      <key>     hash key
  672.      <table>   hash table
  673.      <def>     value to return on no match (default is NIL)
  674.      returns   associated data, if found, or <def> if not found.
  675.  
  676. (remhash <key> <table>)                              DELETE FROM HASH TABLE
  677.      <key>     hash key
  678.      <table>   hash table
  679.      returns   T if deleted, NIL if not in table
  680.  
  681. (clrhash <table>)                                      CLEAR THE HASH TABLE
  682.      <table>   hash table
  683.      returns   NIL, all entries cleared from table
  684.  
  685. (hash-table-count <table>)                  NUMBER OF ENTRIES IN HASH TABLE
  686.      <table>   hash table
  687.      returns   integer number of entries in table
  688.  
  689. (maphash <fcn> <table>)                     MAP FUNCTION OVER TABLE ENTRIES
  690.      <fcn>     the function or function name, a function of two  arguments,
  691.                the first is  bound to the key, and the  second the value of
  692.                each table entry in turn.
  693.      <table>   hash table
  694.      returns   NIL
  695.  
  696. (aref <array> <n>)                          GET THE NTH ELEMENT OF AN ARRAY
  697.      See setf for setting elements of arrays
  698.      <array>   the array (or string)
  699.      <n>       the array index (integer, zero based)
  700.      returns   the value of the array element
  701.  
  702. (make-array <size> &key :initial-element :initial-contents)  MAKE A NEW ARRAY
  703.      <size>    the size of the new array (integer)
  704.      :initial-element
  705.                value to initialize all array elements, default NIL
  706.      :initial-contents
  707.                sequence used to initialize  all array elements, consecutive
  708.                sequence  elements  are used  for  each  array element.  The
  709.                length  of the sequence must be the  same as the size of the
  710.                array
  711.      returns   the new array
  712.  
  713. (vector <expr>...)                               MAKE AN INITIALIZED VECTOR
  714.      <expr>    the vector elements
  715.      returns   the new vector
  716.  
  717. (concatenate <type> <expr> ...)                       CONCATENATE SEQUENCES
  718.      If result type is string, sequences must contain only characters.
  719.      <type>    result type, one of CONS, LIST, ARRAY, or STRING
  720.      <expr>    zero or more sequences to concatenate
  721.      returns   a  sequence  which is  the  concatenation  of the  arguement
  722.                sequences
  723.  
  724. (elt <expr> <n>)                          GET THE NTH ELEMENT OF A SEQUENCE
  725.      <expr>    the sequence
  726.      <n>       the index of element to return
  727.      returns   the element if the index is in bounds, otherwise error
  728.  
  729. (map <type> <fcn> <expr> ...)         APPLY FUNCTION TO SUCCESSIVE ELEMENTS
  730. (map-into <target> <fcn> [<expr> ...])
  731.      <type>    result type, one of CONS, LIST, ARRAY, STRING, or NIL
  732.      <target>  destination sequence to modify
  733.      <fcn>     the function or function name
  734.      <expr>    a sequence for each argument of the function
  735.      returns   a  new sequence  of type  <type> for  MAP, and  <target> for
  736.                MAP-INTO.
  737.  
  738. (every <fcn> <expr> ...)             APPLY FUNCTION TO ELEMENTS UNTIL FALSE
  739. (notevery <fcn> <expr> ...)
  740.      <fcn>     the function or function name
  741.      <expr>    a sequence for each argument of the function
  742.      returns   every returns last evaluated function result
  743.                notevery returns T if  there is a NIL function  result, else
  744.                NIL
  745.  
  746. (some <fcn> <expr> ...)               APPLY FUNCTION TO ELEMENTS UNTIL TRUE
  747. (notany <fcn> <expr> ...)
  748.      <fcn>     the function or function name
  749.      <expr>    a sequence for each argument of the function
  750.      returns   some returns first non-NIL function result, or NIL
  751.                notany returns NIL  if there is  a non-NIL function  result,
  752.                else T
  753.  
  754. (length <expr>)                               FIND THE LENGTH OF A SEQUENCE
  755.      Note that a circular list causes  an error. To detect a circular list,
  756.      use LIST-LENGTH.
  757.      <expr>    the list, vector or string
  758.      returns   the length of the list, vector or string
  759.  
  760. (reverse <expr>)                                         REVERSE A SEQUENCE
  761. (nreverse <expr>)                          DESTRUCTIVELY REVERSE A SEQUENCE
  762.      <expr>    the sequence to reverse
  763.      returns   a new sequence in the reverse order
  764.  
  765. (subseq <seq> <start> [<end>])                        EXTRACT A SUBSEQUENCE
  766.      <seq>     the sequence
  767.      <start>   the starting position (zero origin)
  768.      <end>     the ending position + 1 (defaults to end) or NIL  for end of
  769.                sequence
  770.      returns   the sequence between <start> and <end>
  771.  
  772. (search  <seq1> <seq2>  &key  :test :test-not  :key  :start1 :end1  :start2
  773. :end2)
  774.                                                         SEARCH FOR SEQUENCE
  775.      <seq1>    the sequence to search for
  776.      <seq2>    the sequence to search in
  777.      :test     the test function (defaults to eql)
  778.      :test-not the test function (sense inverted)
  779.      :key      function to  apply to  test function arguments  (defaults to
  780.                identity)
  781.      :start1   starting index in <seq1>
  782.      :end1     index of end+1 in <seq1> or NIL for end of sequence
  783.      :start2   starting index in <seq2>
  784.      :end2     index of end+1 in <seq2> or NIL for end of sequence
  785.      returns   position of first match
  786.  
  787. (remove <expr> <seq> &key :test :test-not :key :start :end)
  788.                                             REMOVE ELEMENTS FROM A SEQUENCE
  789.      <expr>    the element to remove
  790.      <seq>     the sequence
  791.      :test     the test function (defaults to eql)
  792.      :test-not the test function (sense inverted)
  793.      :key      function  to  apply  to   test  function  sequence  argument
  794.                (defaults to identity)
  795.      :start    starting index
  796.      :end      index of end+1, or NIL for (length <seq>)
  797.      returns   copy of sequence with matching expressions removed
  798.  
  799. (remove-if <test> <seq> &key :key :start :end)
  800.                                              REMOVE ELEMENTS THAT PASS TEST
  801. (remove-if-not <test> <seq> &key :key :start :end)
  802.                                              REMOVE ELEMENTS THAT FAIL TEST
  803.      <test>    the test predicate
  804.      <seq>     the sequence
  805.      :key      function  to apply  to test  function argument  (defaults to
  806.                identity)
  807.      :start    starting index
  808.      :end      index of end+1, or NIL for (length <seq>)
  809.      returns   copy  of sequence  with  matching  or non-matching  elements
  810.                removed
  811.  
  812. (count <expr> <seq> &key :test :test-not :key :start :end)
  813.                                       COUNT MATCHING ELEMENTS IN A SEQUENCE
  814.      <expr>    element to count
  815.      <seq>     the sequence
  816.      :test     the test function (defaults to eql)
  817.      :test-not the test function (sense inverted)
  818.      :key      function  to  apply  to  each <seq>  argument  (defaults  to
  819.                identity)
  820.      :start    starting index
  821.      :end      index of end+1, or NIL for (length <seq>)
  822.      returns   count of matching elements
  823.  
  824. (count-if <test> <seq> &key :key :start :end)
  825.                                               COUNT ELEMENTS THAT PASS TEST
  826. (count-if-not <test> <seq> &key :key :start :end)
  827.                                               COUNT ELEMENTS THAT FAIL TEST
  828.      <test>    the test predicate
  829.      <seq>     the sequence
  830.      :key      function  to apply  to test  function argument  (defaults to
  831.                identity)
  832.      :start    starting index
  833.      :end      index of end+1, or NIL for (length <seq>)
  834.      returns   count of matching/non-matching elements
  835.  
  836. (find <expr> <seq> &key :test :test-not :key :start :end)
  837.                                     FIND FIRST MATCHING ELEMENT IN SEQUENCE
  838.      <expr>    element to search for
  839.      <seq>     the sequence
  840.      :test     the test function (defaults to eql)
  841.      :test-not the test function (sense inverted)
  842.      :key      function  to  apply  to  each <seq>  argument  (defaults  to
  843.                identity)
  844.      :start    starting index
  845.      :end      index of end+1, or NIL for (length <seq>)
  846.      returns   first matching element of sequence, or NIL
  847.  
  848. (find-if <test> <seq> &key :key :start :end)
  849.                                         FIND FIRST ELEMENT THAT PASSES TEST
  850. (find-if-not <test> <seq> &key :key :start :end)
  851.                                          FIND FIRST ELEMENT THAT FAILS TEST
  852.      <test>    the test predicate
  853.      <seq>     the sequence
  854.      :key      function  to apply  to test  function argument  (defaults to
  855.                identity)
  856.      :start    starting index
  857.      :end      index of end+1, or NIL for (length <seq>)
  858.      returns   first element of sequence that passes/fails test, or NIL
  859.  
  860. (position <expr> <seq> &key :test :test-not :key :start :end)
  861.                         FIND POSITION OF FIRST MATCHING ELEMENT IN SEQUENCE
  862.      <expr>    element to search for
  863.      <seq>     the sequence
  864.      :test     the test function (defaults to eql)
  865.      :test-not the test function (sense inverted)
  866.      :key      function  to  apply  to  each <seq>  argument  (defaults  to
  867.                identity)
  868.      :start    starting index
  869.      :end      index of end+1, or NIL for (length <seq>)
  870.      returns   position of first matching element of sequence, or NIL
  871.  
  872. (position-if <test> <seq> &key :key :start :end)
  873.                             FIND POSITION OF FIRST ELEMENT THAT PASSES TEST
  874. (position-if-not <test> <seq> &key :key :start :end)
  875.                          FIND POSITION OF FIRST ELEMENT THAT FAILS TEST
  876.      <test>    the test predicate
  877.      <seq>     the sequence
  878.      :key      function  to apply  to test  function argument  (defaults to
  879.                identity)
  880.      :start    starting index
  881.      :end      index of end+1, or NIL for (length <seq>)
  882.      returns   position  of first  element  of sequence  that  passes/fails
  883.                test, or NIL.
  884.  
  885. (delete <expr> <seq> &key :key :test :test-not :start :end)
  886.                                             DELETE ELEMENTS FROM A SEQUENCE
  887.      <expr>    the element to delete
  888.      <seq>     the sequence
  889.      :test     the test function (defaults to eql)
  890.      :test-not the test function (sense inverted)
  891.      :key      function   to  apply  to  test  function  sequence  argument
  892.                (defaults to identity)
  893.      :start    starting index
  894.      :end      index of end+1, or NIL for (length <seq>)
  895.      returns   the sequence with the matching expressions deleted
  896.  
  897. (delete-if <test> <seq> &key :key :start :end)
  898.                                              DELETE ELEMENTS THAT PASS TEST
  899. (delete-if-not <test> <seq> &key :key :start :end)
  900.                                              DELETE ELEMENTS THAT FAIL TEST
  901.      <test>    the test predicate
  902.      <seq>     the sequence
  903.      :key      function  to apply  to test  function argument  (defaults to
  904.                identity)
  905.      :start    starting index
  906.      :end      index of end+1, or NIL for (length <seq>)
  907.      returns   the sequence with matching or non-matching elements deleted
  908.  
  909. (reduce <fcn> <seq> &key :initial-value :start :end)
  910.                                             REDUCE SEQUENCE TO SINGLE VALUE
  911.      <fcn>     function (of two  arguments) to apply to  result of previous
  912.                function application  (or first element) and  each member of
  913.                sequence.
  914.      <seq>     the sequence
  915.      :initial-value      value to  use as first argument  in first function
  916.                          application rather than using the first element of
  917.                          the sequence.
  918.      :start    starting index
  919.      :end      index of end+1, or NIL for (length <seq>)
  920.      returns   if  sequence is empty and there is no initial value, returns
  921.                result of applying function to zero  arguements. If there is
  922.                a single element, returns the element. Otherwise returns the
  923.                result of the last function application.
  924.  
  925. (remove-duplicates <seq> &key :test :test-not :key :start :end)
  926.                                             REMOVE DUPLICATES FROM SEQUENCE
  927.      <seq>     the sequence
  928.      :test     comparison function (default eql)
  929.      :test-not comparison function (sense inverted)
  930.      :key      function to  apply to  test function arguments  (defaults to
  931.                identity)
  932.      :start    starting index
  933.      :end      index of end+1, or NIL for (length <seq>)
  934.      returns   copy of sequence with duplicates removed.
  935.  
  936. (fill <seq> <expr> &key :start :end)              REPLACE ITEMS IN SEQUENCE
  937.      Defined in common.lsp
  938.      <seq>     the sequence
  939.      <expr>    new value to place in sequence
  940.      :start    starting index
  941.      :end      index of end+1, or NIL for (length <seq>)
  942.      returns   sequence with items replaced with new item
  943.  
  944. (replace <seq1> <seq2> &key :start1 :end1 :start2 :end2)
  945.                                     REPLACE ITEMS IN SEQUENCE FROM SEQUENCE
  946.      Defined in common.lsp
  947.      <seq1>    the sequence to modify
  948.      <seq2>    sequence with new items
  949.      :start1   starting index in <seq1>
  950.      :end1     index of end+1 in <seq1> or NIL for end of sequence
  951.      :start2   starting index in <seq2>
  952.      :end2     index of end+1 in <seq2> or NIL for end of sequence
  953.      returns   first sequence with items replaced
  954.  
  955. (car <expr>)                                  RETURN THE CAR OF A LIST NODE
  956. (first <expr>)                                            A SYNONYM FOR CAR
  957.      <expr>    the list node
  958.      returns   the car of the list node
  959.  
  960. (cdr <expr>)                                  RETURN THE CDR OF A LIST NODE
  961. (rest <expr>)                                             A SYNONYM FOR CDR
  962.      <expr>    the list node
  963.      returns   the cdr of the list node
  964.  
  965. (caar <expr>)                      NESTED CAR/CDR EXPRESSIONS
  966. (cadr <expr>)
  967. (cdar <expr>)
  968. (cddr <expr>)
  969. (caaar <expr>)
  970. (caadr <expr>)
  971. (cadar <expr>)
  972. (caddr <expr>)
  973. (cdaar <expr>)
  974. (cdadr <expr>)
  975. (cddar <expr>)
  976. (cdddr <expr>)
  977. (caaaar <expr>)
  978. (caaadr <expr>)
  979. (caadar <expr>)
  980. (caaddr <expr>)
  981. (cadaar <expr>)
  982. (cadadr <expr>)
  983. (caddar <expr>)
  984. (cadddr <expr>)
  985. (cdaaar <expr>)
  986. (cdaadr <expr>)
  987. (cdadar <expr>)
  988. (cdaddr <expr>)
  989. (cddaar <expr>)
  990. (cddadr <expr>)
  991. (cdddar <expr>)
  992. (cddddr <expr>)
  993. (second <expr>)                                          A SYNONYM FOR CADR
  994. (third <expr>)                                          A SYNONYM FOR CADDR
  995. (fourth <expr>)                                        A SYNONYM FOR CADDDR
  996.     Applied from right to left: cadr means take the cdr then take the car.
  997.  
  998. (cons <expr1> <expr2>)                            CONSTRUCT A NEW LIST NODE
  999.      <expr1>   the car of the new list node
  1000.      <expr2>   the cdr of the new list node
  1001.      returns   the new list node
  1002.  
  1003. (acons <expr1> <expr2> <alist>)                  ADD TO FRONT OF ASSOC LIST
  1004.      defined in common.lsp
  1005.      <expr1>   key of new association
  1006.      <expr2>   value of new association
  1007.      <alist>   association list
  1008.      returns   new association list, which  is (cons (cons <expr1> <expr2>)
  1009.                <expr3>))
  1010.  
  1011. (list <expr>...)                                    CREATE A LIST OF VALUES
  1012. (list* <expr> ... <list>)
  1013.      <expr>    expressions to be combined into a list
  1014.      returns   the new list
  1015.  
  1016. (append <expr>...)                                             APPEND LISTS
  1017.      <expr>    lists whose elements are to be appended
  1018.      returns   the new list
  1019.  
  1020. (list-length <list>)                              FIND THE LENGTH OF A LIST
  1021.      <list>    the list
  1022.      returns   the length of the list or NIL if the list is circular
  1023.  
  1024. (last <list>)                           RETURN THE LAST LIST NODE OF A LIST
  1025.      <list>    the list
  1026.      returns   the last list node in the list
  1027.  
  1028. (butlast <list> [<n>])                  RETURN COPY OF ALL BUT LAST OF LIST
  1029.      <list>    the list
  1030.      <n>       count of elements to omit (default 1)
  1031.      returns   copy of list with last element(s) absent.
  1032.  
  1033. (nth <n> <list>)                           RETURN THE NTH ELEMENT OF A LIST
  1034.      <n>       the number of the element to return (zero origin)
  1035.      <list>    the list
  1036.      returns   the nth element or NIL if the list isn't that long
  1037.  
  1038. (nthcdr <n> <list>)                            RETURN THE NTH CDR OF A LIST
  1039.      <n>       the number of the element to return (zero origin)
  1040.      <list>    the list
  1041.      returns   the nth cdr or NIL if the list isn't that long
  1042.  
  1043. (member <expr> <list> &key :test :test-not :key)
  1044.                                                FIND AN EXPRESSION IN A LIST
  1045.      <expr>    the expression to find
  1046.      <list>    the list to search
  1047.      :test     the test function (defaults to eql)
  1048.      :test-not the test function (sense inverted)
  1049.      :key      function to  apply to test function  list argument (defaults
  1050.                to identity)
  1051.      returns   the remainder of the list starting with the expression
  1052.  
  1053. (assoc <expr> <alist> &key :test :test-not :key)
  1054.                                             FIND AN EXPRESSION IN AN A-LIST
  1055.      <expr>    the expression to find
  1056.      <alist>   the association list
  1057.      :test     the test function (defaults to eql)
  1058.      :test-not the test function (sense inverted)
  1059.      :key      function to  apply to test function  list argument (defaults
  1060.                to identity)
  1061.      returns   the alist entry or NIL
  1062.  
  1063. (mapc <fcn> <list1> <list>...)            APPLY FUNCTION TO SUCCESSIVE CARS
  1064.      <fcn>     the function or function name
  1065.      <listn>   a list for each argument of the function
  1066.      returns   the first list of arguments
  1067.  
  1068. (mapcar <fcn> <list1> <list>...)          APPLY FUNCTION TO SUCCESSIVE CARS
  1069.      <fcn>     the function or function name
  1070.      <listn>   a list for each argument of the function
  1071.      returns   a list of the values returned
  1072.  
  1073. (mapl <fcn> <list1> <list>...)            APPLY FUNCTION TO SUCCESSIVE CDRS
  1074.      <fcn>     the function or function name
  1075.      <listn>   a list for each argument of the function
  1076.      returns   the first list of arguments
  1077.  
  1078. (maplist <fcn> <list1> <list>...)         APPLY FUNCTION TO SUCCESSIVE CDRS
  1079.      <fcn>     the function or function name
  1080.      <listn>   a list for each argument of the function
  1081.      returns   a list of the values returned
  1082.  
  1083. (mapcan <fcn> <list1> <list>...)           APPL FUNCTION TO SUCCESSIVE CARS
  1084.      <fcn>     the function or function name
  1085.      <listn>   a list for each argument of the function
  1086.      returns   list of return values nconc'd together
  1087.  
  1088. (mapcon <fcn> <list1> <list>...)           APPL FUNCTION TO SUCCESSIVE CDRS
  1089.      <fcn>     the function or function name
  1090.      <listn>   a list for each argument of the function
  1091.      returns   list of return values nconc'd together
  1092.  
  1093. (subst <to> <from> <expr> &key :test :test-not :key)
  1094. (nsubst <to> <from> <expr> &key :test :test-not :key)
  1095.                                                      SUBSTITUTE EXPRESSIONS
  1096.      SUBST does minimum  copying as required by Common Lisp.  NSUBST is the
  1097.      destructive version.
  1098.      <to>      the new expression
  1099.      <from>    the old expression
  1100.      <expr>    the expression in which to do the substitutions
  1101.      :test     the test function (defaults to eql)
  1102.      :test-not the test function (sense inverted)
  1103.      :key      function  to  apply  to  subtree  test  function  expression
  1104.                argument (defaults to identity)
  1105.      returns   the expression with substitutions
  1106.  
  1107. (sublis <alist> <expr> &key :test :test-not :key)
  1108. (nsublis <alist> <expr> &key :test :test-not :key)
  1109.                                                   SUBSTITUTE WITH AN A-LIST
  1110.      SUBLIS does minimum copying as required by Common Lisp. NSUBLIS is the
  1111.      destructive version.
  1112.      <alist>   the association list
  1113.      <expr>    the expression in which to do the substitutions
  1114.      :test     the test function (defaults to eql)
  1115.      :test-not the test function (sense inverted)
  1116.      :key      function  to  apply  to  subtree  test  function  expression
  1117.                argument (defaults to identity)
  1118.      returns   the expression with substitutions
  1119.  
  1120. (pairlis <keys> <values> [<alist>])          BUILD AN A-LIST FROM TWO LISTS
  1121.      In file common.lsp
  1122.      <keys>    list of association keys
  1123.      <values>  list of association values, same length as keys
  1124.      <alist>   existing association list, default NIL
  1125.      returns   new association list
  1126.  
  1127. (copy-list <list>)                             COPY THE TOP LEVEL OF A LIST
  1128.      In file common.lsp
  1129.      <list>    the list
  1130.      returns   a copy of the list (new cons cells in top level)
  1131.  
  1132. (copy-alist <alist>)                               COPY AN ASSOCIATION LIST
  1133.      In file common.lsp
  1134.      <alist>   the association list
  1135.      returns   a copy of the association list (keys and values not copies)
  1136.  
  1137. (copy-tree <tree>)                                              COPY A TREE
  1138.      In file common.lsp
  1139.      <tree>    a tree structure of cons cells
  1140.      returns   a copy of the tree structure
  1141.  
  1142. (intersection <list1> <list2> &key :test :test-not :key)      SET FUNCTIONS
  1143. (union <list1> <list2> &key :test :test-not :key)
  1144. (set-difference <list1> <list2> &key :test :test-not :key)
  1145. (set-exclusive-or <list1> <list2> &key :test :test-not :key)
  1146. (nintersection <list1> <list2> &key :test :test-not :key)
  1147. (nunion <list1> <list2> &key :test :test-not :key)
  1148. (nset-difference <list1> <list2> &key :test :test-not :key)
  1149. (nset-exclusive-or <list1> <list2> &key :test :test-not :key)
  1150.      set-exclusive-or and nset-exclusive-or defined in  common.lsp. nunion,
  1151.      nintersection,    and   nset-difference    are   aliased    to   their
  1152.      non-destructive counterparts in common.lsp.
  1153.      <list1>   first list
  1154.      <list2>   second list
  1155.      :test     the test function (defaults to eql)
  1156.      :test-not the test function (sense inverted)
  1157.      :key      function to  apply to  test function arguments  (defaults to
  1158.                identity)
  1159.      returns   intersection: list of all elements in both lists
  1160.                union: list of all elements in either list
  1161.                set-diference: list of all elements in first list but not in
  1162.                second list
  1163.                set-exclusive-or: list of all elements in only one list
  1164.                "n" versions are potentially destructive.
  1165.  
  1166. (adjoin <expr> <list> :test :test-not :key)              ADD UNIQUE TO LIST
  1167.      <expr>    new element to add
  1168.      <list>    the list
  1169.      :test     the test function (defaults to eql)
  1170.      :test-not the test function <sense inverted)
  1171.      :key      function to  apply to  test function arguments  (defaults to
  1172.                identity)
  1173.      returns   if  element not  in  list then  (cons  <expr> <list>),  else
  1174.                <list>.
  1175.  
  1176. (rplaca <list> <expr>)                       REPLACE THE CAR OF A LIST NODE
  1177.      <list>    the list node
  1178.      <expr>    the new value for the car of the list node
  1179.      returns   the list node after updating the car
  1180.  
  1181. (rplacd <list> <expr>)                       REPLACE THE CDR OF A LIST NODE
  1182.      <list>    the list node
  1183.      <expr>    the new value for the cdr of the list node
  1184.      returns   the list node after updating the cdr
  1185.  
  1186. (nconc <list>...)                           DESTRUCTIVELY CONCATENATE LISTS
  1187.      <list>    lists to concatenate
  1188.      returns   the result of concatenating the lists
  1189.  
  1190. (sort <seq> <test> &key :key)                 DESTRUCTIVELY SORT A SEQUENCE
  1191.      <seq>     the sequence to sort
  1192.      <test>    the comparison function
  1193.      :key      function to apply to comparison function arguments (defaults
  1194.                to identity)
  1195.      returns   the sorted sequence
  1196.  
  1197. (nsubst-if <to> <test> <expr> &key :key)
  1198. (nsubst-if-not <to> <test> <expr> &key :key)
  1199.                                                      SUBSTITUTE EXPRESSIONS
  1200.      <to>      the new expression
  1201.      <test>    function of one argument to test each subtree
  1202.      <expr>    the expression in which to do the substitutions
  1203.      :key      function  to apply  to test  function argument  (defaults to
  1204.                identity)
  1205.      returns   the expression with substitutions
  1206.  
  1207. (truncate <expr> <denom>)                             TRUNCATES TOWARD ZERO
  1208. (round <expr> <denom>)                   ROUNDS TOWARD NEAREST EVEN INTEGER
  1209. (floor <expr> <denom>)                   TRUNCATES TOWARD NEGATIVE INFINITY
  1210. (ceiling <expr> <denom>)                          TRUNCATES TOWARD INFINITY
  1211.      Round,  floor, and ceiling, and  the second argument  of truncate, are
  1212.      part  of the  math extension.  Results too  big to  be represented  as
  1213.      integers are returned  as floating point numbers  as part of the  math
  1214.      extension. Integers are returned as is.
  1215.      <expr>    the real number
  1216.      <denom>   real number to divide <expr> by before converting
  1217.      returns   the integer  result  of converting  the  number, and,  as  a
  1218.                second return value, the remainder of the operation, defined
  1219.                as expr - result*denom. the type is float if either argument
  1220.                is float, otherwise it is rational.
  1221.  
  1222. (float <expr>)               CONVERTS AN INTEGER TO A FLOATING POINT NUMBER
  1223.      <expr>    the real number
  1224.      returns   the number as a floating point number
  1225.  
  1226. (rational <expr>)                      CONVERTS A REAL NUMBER TO A RATIONAL
  1227.      Floating  point numbers too large to express return the floating point
  1228.      number,  while numbers  too  small to  express  return zero.  Rational
  1229.      numbers are returned as is.
  1230.      <expr>    the real number
  1231.      returns   the number as a ratio or integer. 
  1232.  
  1233. (+ [<expr>...])                                       ADD A LIST OF NUMBERS
  1234.      With no arguments returns addition identity, 0 (integer)
  1235.      <expr>    the numbers
  1236.      returns   the result of the addition
  1237.  
  1238. (- <expr>...)          SUBTRACT A LIST OF NUMBERS OR NEGATE A SINGLE NUMBER
  1239.      <expr>    the numbers
  1240.      returns   the result of the subtraction
  1241.  
  1242. (* [<expr>...])                                  MULTIPLY A LIST OF NUMBERS
  1243.      With no arguments returns multiplication identity, 1
  1244.      <expr>    the numbers
  1245.      returns   the result of the multiplication
  1246.  
  1247. (/ <expr>...)            DIVIDE A LIST OF NUMBERS OR INVERT A SINGLE NUMBER
  1248.      With  the math  extension, division  of integer  numbers results  in a
  1249.      rational quotient,  rather than integer. To  perform integer division,
  1250.      use TRUNCATE.  When an integer complex  is divided by  an integer, the
  1251.      quotient is floating point complex.
  1252.      <expr>    the numbers
  1253.      returns   the result of the division
  1254.  
  1255. (1+ <expr>)                                             ADD ONE TO A NUMBER
  1256.      <expr>    the number
  1257.      returns   the number plus one
  1258.  
  1259. (1- <expr>)                                      SUBTRACT ONE FROM A NUMBER
  1260.      <expr>    the number
  1261.      returns   the number minus one
  1262.  
  1263. (rem <expr>...)                              REMAINDER OF A LIST OF NUMBERS
  1264.      With the math extension, only two arguments allowed.
  1265.      <expr>    the real numbers (must be integers, without math extension)
  1266.      returns   the  result  of  the  remainder  operation  (remainder  with
  1267.                truncating division)
  1268.  
  1269. (mod <expr1> <expr2>)                          NUMBER MODULO ANOTHER NUMBER
  1270.      Part of math extension.
  1271.      <expr1>   real number
  1272.      <expr2>   real number divisor (may not be zero)
  1273.      returns   the  remainder  after  dividing  <expr1>  by  <expr2>  using
  1274.                flooring  division, thus  there is  no discontinuity  in the
  1275.                function around zero.
  1276.  
  1277. (min <expr>...)                           THE SMALLEST OF A LIST OF NUMBERS
  1278.      <expr>    the real numbers
  1279.      returns   the smallest number in the list
  1280.  
  1281. (max <expr>...)                            THE LARGEST OF A LIST OF NUMBERS
  1282.      <expr>    the real numbers
  1283.      returns   the largest number in the list
  1284.  
  1285. (abs <expr>)                                 THE ABSOLUTE VALUE OF A NUMBER
  1286.      <expr>    the number
  1287.      returns   the  absolute value  of  the number,  which is  the floating
  1288.                point magnitude for complex numbers.
  1289.  
  1290. (signum <expr>)                                    GET THE SIGN OF A NUMBER
  1291.      Defined in common.lsp
  1292.      <expr>    the number
  1293.      returns   zero if number is zero, one  if positive, or negative one if
  1294.                negative.  Numeric type  is  same as  number. For  a complex
  1295.                number, returns unit magnitude but same phase as number.
  1296.  
  1297. (gcd [<n>...])                          COMPUTE THE GREATEST COMMON DIVISOR
  1298.      With no arguments returns 0, with one argument returns the argument.
  1299.      <n>       The number(s) (integer)
  1300.      returns   the greatest common divisor
  1301.  
  1302. (lcm <n>...)                              COMPUTE THE LEAST COMMON MULTIPLE
  1303.      Part  of  math extension.  A result  which  would be  larger  than the
  1304.      largest integer causes an error.
  1305.      <n>       The number(s) (integer)
  1306.      returns   the least common multiple
  1307.  
  1308. (random <n> [<state>])                       COMPUTE A PSEUDO-RANDOM NUMBER
  1309.      <n>       the real number upper bound
  1310.      <state>   a random-state (default is *random-state*)
  1311.      returns   a random number in range [0,n)
  1312.  
  1313. (make-random-state [<state>])                         CREATE A RANDOM-STATE
  1314.      <state>   a  random-state,   t,  or  NIL  (default   NIL).  NIL  means
  1315.                *random-state*
  1316.      returns   If  <state> is t, a random random-state, otherwise a copy of
  1317.                <state>
  1318.  
  1319. (sin <expr>)                                   COMPUTE THE SINE OF A NUMBER
  1320. (cos <expr>)                                 COMPUTE THE COSINE OF A NUMBER
  1321. (tan <expr>)                                COMPUTE THE TANGENT OF A NUMBER
  1322. (asin <expr>)                              COMPUTE THE ARC SINE OF A NUMBER
  1323. (acos <expr>)                            COMPUTE THE ARC COSINE OF A NUMBER
  1324.      <expr>    the floating point number
  1325.      returns   the  sine, cosine, tangent, arc  sine, or arc  cosine of the
  1326.                number
  1327.  
  1328. (atan <expr> [<expr2>])                 COMPUTE THE ARC TANGENT OF A NUMBER
  1329.      <expr>    the floating point number (numerator)
  1330.      <expr2>   the denominator,  default 1. May  only be specified  if math
  1331.                extension installed
  1332.      returns   the arc tangent of <expr>/<expr2>
  1333.  
  1334. (sinh <expr>)                       COMPUTE THE HYPERBOLIC SINE OF A NUMBER
  1335. (cosh <expr>)                     COMPUTE THE HYPERBOLIC COSINE OF A NUMBER
  1336. (tanh <expr>)                    COMPUTE THE HYPERBOLIC TANGENT OF A NUMBER
  1337. (asinh <expr>)                  COMPUTE THE HYPERBOLIC ARC SINE OF A NUMBER
  1338. (acosh <expr>)                COMPUTE THE HYPERBOLIC ARC COSINE OF A NUMBER
  1339. (atanh <expr>)               COMPUTE THE HYPERBOLIC ARC TANGENT OF A NUMBER
  1340.      Defined in common.lsp
  1341.      <expr>    the number
  1342.      returns   the hyperbolic sine, cosine,  tangent, arc sine, arc cosine,
  1343.                or arc tangent of the number.
  1344.  
  1345. (expt <x-expr> <y-expr>)                           COMPUTE X TO THE Y POWER
  1346.      <x-expr>  the number 
  1347.      <y-expr>  the exponent 
  1348.      returns   x to the y power. If y is a fixnum, then  the result type is
  1349.                the same  as the type  of x, unless  fixnum or ratio  and it
  1350.                would overflow, then the result type is a flonum.
  1351.  
  1352. (exp <x-expr>)                                     COMPUTE E TO THE X POWER
  1353.      <x-expr>  the floating point number 
  1354.      returns   e to the x power
  1355.  
  1356. (cis <x-expr>)                                      COMPUTE COSINE + I SINE
  1357.      Defined in common.lsp
  1358.      <x-expr>  the number
  1359.      returns   e to the ix power
  1360.  
  1361. (log <expr> [<base>])                                  COMPUTE THE LOGRITHM
  1362.      Part of the math extension
  1363.      <expr>    the number
  1364.      <base>    the base, default is e
  1365.      returns   log base <base> of <expr>
  1366.  
  1367. (sqrt <expr>)                           COMPUTE THE SQUARE ROOT OF A NUMBER
  1368.      <expr>    the number 
  1369.      returns   the square root of the number
  1370.  
  1371. (numerator <expr>)                            GET THE NUMERATOR OF A NUMBER
  1372.      Part of math extension
  1373.      <expr>    rational number
  1374.      returns   numerator of number (number if integer)
  1375.  
  1376. (denominator <expr>)                        GET THE DENOMINATOR OF A NUMBER
  1377.      Part of math extension
  1378.      <expr>    rational number
  1379.      returns   denominator of number (1 if integer)
  1380.  
  1381. (complex <real> [<imag>])                         CONVERT TO COMPLEX NUMBER
  1382.      Part of math extension
  1383.      <real>    real number real part
  1384.      <imag>    real number imaginary part (default 0)
  1385.      returns   the complex number
  1386.  
  1387. (realpart <expr>)                             GET THE REAL PART OF A NUMBER
  1388.      Part of the math extension
  1389.      <expr>    the number
  1390.      returns   the real part of a complex number, or the number itself if a
  1391.      real number
  1392.  
  1393. (imagpart <expr>)                        GET THE IMAGINARY PART OF A NUMBER
  1394.      Part of the math extension
  1395.      <expr>    the number
  1396.      returns   the imaginary part  of a complex number, or zero of the type
  1397.                of the number if a real number.
  1398.  
  1399. (conjugate <expr>)                            GET THE CONJUGATE OF A NUMBER
  1400.      Part of the math extension
  1401.      <expr>    the number
  1402.      returns   the conjugate of a complex number, or the number itself if a
  1403.      real number.
  1404.  
  1405. (phase <expr>)                                    GET THE PHASE OF A NUMBER
  1406.      Part of the math extension
  1407.      <expr>    the number
  1408.      returns   the  phase  angle,  equivalent to  (atan  (imagpart  <expr>)
  1409.                (realpart <expr>))
  1410.  
  1411. (< <n1> <n2>...)                                         TEST FOR LESS THAN
  1412. (<= <n1> <n2>...)                            TEST FOR LESS THAN OR EQUAL TO
  1413. (= <n1> <n2>...)                                          TEST FOR EQUAL TO
  1414. (/= <n1> <n2>...)                                     TEST FOR NOT EQUAL TO
  1415. (>= <n1> <n2>...)                         TEST FOR GREATER THAN OR EQUAL TO
  1416. (> <n1> <n2>...)                                      TEST FOR GREATER THAN
  1417.      <n1>      the first real number to compare
  1418.      <n2>      the second real number to compare
  1419.      returns   the result of comparing <n1> with <n2>...
  1420.  
  1421. (logand [<expr>...])                  THE BITWISE AND OF A LIST OF INTEGERS
  1422.      With no arguments returns identity -1
  1423.      <expr>    the integers
  1424.      returns   the result of the and operation
  1425.  
  1426. (logior [<expr>...])         THE BITWISE INCLUSIVE OR OF A LIST OF INTEGERS
  1427.      With no arguments returns identity 0
  1428.      <expr>    the integers
  1429.      returns   the result of the inclusive or operation
  1430.  
  1431. (logxor [<expr>...])         THE BITWISE EXCLUSIVE OR OF A LIST OF INTEGERS
  1432.      With no arguments returns identity 0
  1433.      <expr>    the integers
  1434.      returns   the result of the exclusive or operation
  1435.  
  1436. (lognot <expr>)                                THE BITWISE NOT OF A INTEGER
  1437.      <expr>    the integer
  1438.      returns   the bitwise inversion of integer
  1439.  
  1440. (logtest <expr1> <expr2>)                  TEST BITWISE AND OF TWO INTEGERS
  1441.      Defined in common.lsp
  1442.      <expr1>   the first integer
  1443.      <expr2>   the second integer
  1444.      returns   T if the result of the and operation is non-zero, else NIL
  1445.  
  1446. (ash <expr1> <expr2>)                                      ARITHMETIC SHIFT
  1447.      Part of math extension
  1448.      <expr1>   integer to shift
  1449.      <expr2>   number of bit positions to shift (positive is to left)
  1450.      returns   shifted integer
  1451.  
  1452. (string <expr>)                   MAKE A STRING FROM AN INTEGER ASCII VALUE
  1453.      <expr>    an  integer  (which  is   first  converted  into  its  ASCII
  1454.                character value), string, character, or symbol
  1455.      returns   the string representation of the argument
  1456.  
  1457. (string-trim <bag> <str>)                        TRIM BOTH ENDS OF A STRING
  1458.      <bag>     a string containing characters to trim
  1459.      <str>     the string to trim
  1460.      returns   a trimed copy of the string
  1461.  
  1462. (string-left-trim <bag> <str>)                TRIM THE LEFT END OF A STRING
  1463.      <bag>     a string containing characters to trim
  1464.      <str>     the string to trim
  1465.      returns   a trimed copy of the string
  1466.  
  1467. (string-right-trim <bag> <str>)              TRIM THE RIGHT END OF A STRING
  1468.      <bag>     a string containing characters to trim
  1469.      <str>     the string to trim
  1470.      returns   a trimed copy of the string
  1471.  
  1472. (string-upcase <str> &key :start :end)                 CONVERT TO UPPERCASE
  1473.      <str>     the string
  1474.      :start    the starting offset
  1475.      :end      the ending offset + 1 or NIL for end of string
  1476.      returns   a converted copy of the string
  1477.  
  1478. (string-downcase <str> &key :start :end)               CONVERT TO LOWERCASE
  1479.      <str>     the string
  1480.      :start    the starting offset
  1481.      :end      the ending offset + 1 or NIL for end of string
  1482.      returns   a converted copy of the string
  1483.  
  1484. (string-capitalize <str> &key :start :end)                CAPITALIZE STRING
  1485.      <str>     the string
  1486.      :start    the starting offset
  1487.      :end      the ending offset + 1 or NIL for end of string
  1488.      returns   a  converted copy  of the  string with  each word  having an
  1489.                initial uppercase letter and following lowercase letters
  1490.  
  1491. (nstring-upcase <str> &key :start :end)                CONVERT TO UPPERCASE
  1492.      <str>     the string
  1493.      :start    the starting offset
  1494.      :end      the ending offset + 1 or NIL for end of string
  1495.      returns   the converted string (not a copy)
  1496.  
  1497. (nstring-downcase <str> &key :start :end)              CONVERT TO LOWERCASE
  1498.      <str>     the string
  1499.      :start    the starting offset
  1500.      :end      the ending offset + 1 or NIL for end of string
  1501.      returns   the converted string (not a copy)
  1502.  
  1503. (nstring-capitalize <str> &key :start :end)               CAPITALIZE STRING
  1504.      <str>     the string
  1505.      :start    the starting offset
  1506.      :end      the ending offset + 1 or NIL for end of string
  1507.      returns   the string with each word having an initial uppercase letter
  1508.                and following lowercase letters (not a copy)
  1509.  
  1510. (strcat <expr>...)                                      CONCATENATE STRINGS
  1511.      Macro in init.lsp, to maintain compatibility with XLISP.
  1512.      See CONCATENATE for preferred function.
  1513.      <expr>    the strings to concatenate
  1514.      returns   the result of concatenating the strings
  1515.  
  1516. (string< <str1> <str2> &key :start1 :end1 :start2 :end2)
  1517. (string<= <str1> <str2> &key :start1 :end1 :start2 :end2)
  1518. (string= <str1> <str2> &key :start1 :end1 :start2 :end2)
  1519. (string/= <str1> <str2> &key :start1 :end1 :start2 :end2)
  1520. (string>= <str1> <str2> &key :start1 :end1 :start2 :end2)
  1521. (string> <str1> <str2> &key :start1 :end1 :start2 :end2)
  1522.      <str1>    the first string to compare
  1523.      <str2>    the second string to compare
  1524.      :start1   first substring starting offset
  1525.      :end1     first substring ending offset + 1 or NIL for end of string
  1526.      :start2   second substring starting offset
  1527.      :end2     second substring ending offset + 1 or NIL for end of string
  1528.      returns   string=: t if predicate is true, NIL otherwise
  1529.                others: If predicate is true then number of initial matching
  1530.                characters, else NIL
  1531.      Note: case is significant with these comparison functions.
  1532.  
  1533. (string-lessp <str1> <str2> &key :start1 :end1 :start2 :end2)
  1534. (string-not-greaterp <str1> <str2> &key :start1 :end1 :start2 :end2)
  1535. (string-equal <str1> <str2> &key :start1 :end1 :start2 :end2)
  1536. (string-not-equal <str1> <str2> &key :start1 :end1 :start2 :end2)
  1537. (string-not-lessp <str1> <str2> &key :start1 :end1 :start2 :end2)
  1538. (string-greaterp <str1> <str2> &key :start1 :end1 :start2 :end2)
  1539.      <str1>    the first string to compare
  1540.      <str2>    the second string to compare
  1541.      :start1   first substring starting offset
  1542.      :end1     first substring ending offset + 1 or NIL for end of string
  1543.      :start2   second substring starting offset
  1544.      :end2     second substring ending offset + 1 or NIL for end of string
  1545.      returns   string-equal: t if predicate is true, NIL otherwise
  1546.                others: If predicate is true then number of initial matching
  1547.                characters, else NIL
  1548.      Note: case is not  significant with these comparison functions  -- all
  1549.      uppercase characters are converted to lowercase before being compared.
  1550.  
  1551. (char <string> <index>)                   EXTRACT A CHARACTER FROM A STRING
  1552.      <string>  the string
  1553.      <index>   the string index (zero relative)
  1554.      returns   the ascii code of the character
  1555.  
  1556. (alphanumericp <chr>)                       IS THIS CHARACTER ALPHANUMERIC?
  1557.      <chr>     the character
  1558.      returns   true  if  the  character   is  alphabetic  or  numeric,  NIL
  1559.                otherwise
  1560.  
  1561. (upper-case-p <chr>)                       IS THIS AN UPPER CASE CHARACTER?
  1562.      <chr>     the character
  1563.      returns   true if the character is upper case, NIL otherwise
  1564.  
  1565. (lower-case-p <chr>)                        IS THIS A LOWER CASE CHARACTER?
  1566.      <chr>     the character
  1567.      returns   true if the character is lower case, NIL otherwise
  1568.  
  1569. (alpha-char-p <chr>)                       IS THIS AN ALPHABETIC CHARACTER?
  1570.      <chr>     the character
  1571.      returns   true if the character is alphabetic, NIL otherwise
  1572.  
  1573. (both-case-p <chr>)          IS THIS AN ALPHABETIC (EITHER CASE) CHARACTER?
  1574.      <chr>     the character
  1575.      returns   true  if the  character  is  available  in both  cases,  NIL
  1576.                otherwise
  1577.  
  1578. (digit-char-p <chr>)                             IS THIS A DIGIT CHARACTER?
  1579.      <chr>     the character
  1580.      returns   the digit weight if character is a digit, NIL otherwise
  1581.  
  1582. (char-code <chr>)                         GET THE ASCII CODE OF A CHARACTER
  1583.      <chr>     the character
  1584.      returns   the ASCII character code (integer, parity bit stripped)
  1585.  
  1586. (code-char <code>)             GET THE CHARACTER WITH A SPECFIED ASCII CODE
  1587.      <code>    the ASCII code (integer, range 0-127)
  1588.      returns   the character with that code or NIL
  1589.  
  1590. (char-upcase <chr>)                       CONVERT A CHARACTER TO UPPER CASE
  1591.      <chr>     the character
  1592.      returns   the upper  case  version of  the character,  if one  exists,
  1593.                otherwise returns the character
  1594.  
  1595. (char-downcase <chr>)                     CONVERT A CHARACTER TO LOWER CASE
  1596.      <chr>     the character
  1597.      returns   the  lower case  version  of the  character, if  one exists,
  1598.                otherwise returns the character
  1599.  
  1600. (digit-char <n>)                          CONVERT A DIGIT WEIGHT TO A DIGIT
  1601.      <n>       the digit weight (integer)
  1602.      returns   the digit character or NIL
  1603.  
  1604. (char-int <chr>)                          CONVERT A CHARACTER TO AN INTEGER
  1605.      <chr>     the character
  1606.      returns   the ASCII character code (range 0-255)
  1607.  
  1608. (int-char <int>)                          CONVERT AN INTEGER TO A CHARACTER
  1609.      <int>     the ASCII character code (treated modulo 256)
  1610.      returns   the character with that code
  1611.  
  1612. (char< <chr1> <chr2>...)
  1613. (char<= <chr1> <chr2>...)
  1614. (char= <chr1> <chr2>...)
  1615. (char/= <chr1> <chr2>...)
  1616. (char>= <chr1> <chr2>...)
  1617. (char> <chr1> <chr2>...)
  1618.      <chr1>    the first character to compare
  1619.      <chr2>    the second character(s) to compare
  1620.      returns   t if predicate is true, NIL otherwise
  1621.      Note: case is significant with these comparison functions.
  1622.  
  1623. (char-lessp <chr1> <chr2>...)
  1624. (char-not-greaterp <chr1> <chr2>...)
  1625. (char-equal <chr1> <chr2>...)
  1626. (char-not-equal <chr1> <chr2>...)
  1627. (char-not-lessp <chr1> <chr2>...)
  1628. (char-greaterp <chr1> <chr2>...)
  1629.      <chr1>    the first string to compare
  1630.      <chr2>    the second string(s) to compare
  1631.      returns   t if predicate is true, NIL otherwise
  1632.      Note: case is not  significant with these comparison functions  -- all
  1633.      uppercase characters are converted to lowercase before the comparison.
  1634.  
  1635.  
  1636. (defstruct name [<comment>] <slot-desc>...)
  1637. (defstruct (name <option>...) [<comment>] <slot-desc>...)
  1638.                fsubr
  1639.                <name>              the structure name symbol (quoted)
  1640.                <option>            option description (quoted)
  1641.                <comment>           comment string (ignored)
  1642.                <slot-desc>         slot descriptions (quoted)
  1643.                returns             the structure name
  1644. The recognized options are:
  1645.      (:conc-name name)
  1646.      (:include name [<slot-desc>...])
  1647.      (:print-function <function>)
  1648.  
  1649. (send <object> <message> [<args>...])                        SEND A MESSAGE
  1650.      <object>  the object to receive the message
  1651.      <message> message sent to object
  1652.      <args>    arguments to method (if any)
  1653.      returns   the result of the method
  1654.  
  1655. (send-super <message> [<args>])                SEND A MESSAGE TO SUPERCLASS
  1656.      valid only in method context
  1657.      <message> message sent to method's superclass
  1658.      <args>    arguments to method (if any)
  1659.      returns   the result of the method
  1660.  
  1661. (defclass <sym> <ivars> [<cvars> [<super>]])             DEFINE A NEW CLASS
  1662.      defined in class.lsp as a macro
  1663.      <sym>     symbol  whose value  is  to be  bound  to the  class  object
  1664.                (quoted)
  1665.      <ivars>   list  of instance  variables  (quoted).  Instance  variables
  1666.                specified  either as  <ivar> or  (<ivar> <init>)  to specify
  1667.                non-NIL default initial value.
  1668.      <cvars>   list of class variables (quoted)
  1669.      <super>   superclass, or Object if absent.
  1670.      This function  sends :SET-PNAME  (defined in  classes.lsp) to  the new
  1671.      class to set the class' print name instance variable.
  1672.      Methods defined for classes defined with defclass:
  1673.      (send <object> :<ivar>)
  1674.                Returns the specified instance variable
  1675.      (send <object> :SET-IVAR <ivar> <value>)
  1676.                Used to set an instance variable, typically with setf.
  1677.      (send <sym> :NEW {:<ivar> <init>})
  1678.                Actually   definition  for   :ISNEW.   Creates  new   object
  1679.                initializing  instance  variables  as  specified  in keyword
  1680.                arguments,  or  to  their  default if  keyword  argument  is
  1681.                missing. Returns the object.
  1682.  
  1683. (defmethod <class> <sym> <fargs> <expr> ...)            DEFINE A NEW METHOD
  1684.      defined in class.lsp as a macro
  1685.      <class>   Class which will respond to message
  1686.      <sym>     Message name (quoted)
  1687.      <fargs>   Formal argument list. Leading "self" is implied (quoted)
  1688.      <expr>    Expressions constituting body of method (quoted)
  1689.      returns   the class object.
  1690.  
  1691. (definst <class> <sym> [<args>...])            DEFINE A NEW GLOBAL INSTANCE
  1692.      defined in class.lsp as a macro
  1693.      <class>   Class of new object
  1694.      <sym>     Symbol whose value will be set to new object
  1695.      <args>    Arguments  passed  to  :NEW  (typically initial  values  for
  1696.                instance variables)
  1697.  
  1698. (atom <expr>)                                              IS THIS AN ATOM?
  1699.      <expr>    the expression to check
  1700.      returns   t if the value is an atom, NIL otherwise
  1701.  
  1702. (symbolp <expr>)                                          IS THIS A SYMBOL?
  1703.      <expr>    the expression to check
  1704.      returns   t if the expression is a symbol, NIL otherwise
  1705.  
  1706. (numberp <expr>)                                          IS THIS A NUMBER?
  1707.      <expr>    the expression to check
  1708.      returns   t if the expression is a number, NIL otherwise
  1709.  
  1710. (null <expr>)                                        IS THIS AN EMPTY LIST?
  1711.      <expr>    the list to check
  1712.      returns   t if the list is empty, NIL otherwise
  1713.  
  1714. (not <expr>)                                                 IS THIS FALSE?
  1715.      <expr>    the expression to check
  1716.      return    t if the value is NIL, NIL otherwise
  1717.  
  1718. (listp <expr>)                                              IS THIS A LIST?
  1719.      <expr>    the expression to check
  1720.      returns   t if the value is a cons or NIL, NIL otherwise
  1721.  
  1722. (endp <list>)                                    IS THIS THE END OF A LIST?
  1723.      <list>    the list
  1724.      returns   t if the value is NIL, NIL otherwise
  1725.  
  1726. (consp <expr>)                                    IS THIS A NON-EMPTY LIST?
  1727.      <expr>    the expression to check
  1728.      returns   t if the value is a cons, NIL otherwise
  1729.  
  1730. (constantp <expr>)                                      IS THIS A CONSTANT?
  1731.      <expr>    the expression to check
  1732.      returns   t if the value  is a constant (basically, would  EVAL <expr>
  1733.                repeatedly return the same thing?), NIL otherwise.
  1734.  
  1735. (specialp <expr>)                                 IS THIS A SPECIAL SYMBOL?
  1736.      <expr>    the expression to check
  1737.      returns   t if the value is a symbol which is SPECIAL, NIL otherwise.
  1738.  
  1739. (integerp <expr>)                                       IS THIS AN INTEGER?
  1740.      <expr>    the expression to check
  1741.      returns   t if the value is an integer, NIL otherwise
  1742.  
  1743. (floatp <expr>)                                            IS THIS A FLOAT?
  1744.      <expr>    the expression to check
  1745.      returns   t if the value is a float, NIL otherwise
  1746.  
  1747. (rationalp <expr>)                               IS THIS A RATIONAL NUMBER?
  1748.      Part of math extension.
  1749.      <expr>    the expression to check
  1750.      returns   t if the value is rational (integer or ratio), NIL otherwise
  1751.  
  1752. (complexp <expr>)                                 IS THIS A COMPLEX NUMBER?
  1753.      Part of math extension.
  1754.      <expr>    the expression to check
  1755.      returns   t if the value is a complex number, NIL otherwise
  1756.  
  1757. (stringp <expr>)                                          IS THIS A STRING?
  1758.      <expr>    the expression to check
  1759.      returns   t if the value is a string, NIL otherwise
  1760.  
  1761. (characterp <expr>)                                    IS THIS A CHARACTER?
  1762.      <expr>    the expression to check
  1763.      returns   t if the value is a character, NIL otherwise
  1764.  
  1765. (arrayp <expr>)                                           IS THIS AN ARRAY?
  1766.      <expr>    the expression to check
  1767.      returns   t if the value is an array, NIL otherwise
  1768.  
  1769. (streamp <expr>)                                          IS THIS A STREAM?
  1770.      <expr>    the expression to check
  1771.      returns   t if the value is a stream, NIL otherwise
  1772.  
  1773. (open-stream-p <stream>)                                    IS STREAM OPEN?
  1774.      <stream>  the stream
  1775.      returns   t if the stream is open, NIL otherwise
  1776.  
  1777. (input-stream-p <stream>)                               IS STREAM READABLE?
  1778.      <stream>  the stream
  1779.      returns   t if stream is readable, NIL otherwise
  1780.  
  1781. (output-stream-p <stream>)                              IS STREAM WRITABLE?
  1782.      <stream>  the stream
  1783.      returns   t if stream is writable, NIL otherwise
  1784.  
  1785. (objectp <expr>)                                         IS THIS AN OBJECT?
  1786.      <expr>    the expression to check
  1787.      returns   t if the value is an object, NIL otherwise
  1788.  
  1789. (classp <expr>)                                     IS THIS A CLASS OBJECT?
  1790.      <expr>    the expression to check
  1791.      returns   t if the value is a class object, NIL otherwise
  1792.  
  1793. (boundp <sym>)                             IS A VALUE BOUND TO THIS SYMBOL?
  1794.      <sym>     the symbol
  1795.      returns   t if a value is bound to the symbol, NIL otherwise
  1796.  
  1797. (fboundp <sym>)                 IS A FUNCTIONAL VALUE BOUND TO THIS SYMBOL?
  1798.      <sym>     the symbol
  1799.      returns   t  if a  functional  value  is  bound  to  the  symbol,  NIL
  1800.                otherwise
  1801.  
  1802. (functionp <sym>)                                       IS THIS A FUNCTION?
  1803.      Defined in common.lsp
  1804.      <expr>    the expression to check
  1805.      returns   t if the value  is a function -- that is,  can it be applied
  1806.                to arguments. This is  true for any symbol (even  those with
  1807.                no function binding), list with car being lambda, a closure,
  1808.                or subr. Otherwise returns NIL.
  1809.  
  1810. (minusp <expr>)                                    IS THIS NUMBER NEGATIVE?
  1811.      <expr>    the number to test
  1812.      returns   t if the number is negative, NIL otherwise
  1813.  
  1814. (zerop <expr>)                                         IS THIS NUMBER ZERO?
  1815.      <expr>    the number to test
  1816.      returns   t if the number is zero, NIL otherwise
  1817.  
  1818. (plusp <expr>)                                     IS THIS NUMBER POSITIVE?
  1819.      <expr>    the number to test
  1820.      returns   t if the number is positive, NIL otherwise
  1821.  
  1822. (evenp <expr>)                                        IS THIS INTEGER EVEN?
  1823.      <expr>    the integer to test
  1824.      returns   t if the integer is even, NIL otherwise
  1825.  
  1826. (oddp <expr>)                                          IS THIS INTEGER ODD?
  1827.      <expr>    the integer to test
  1828.      returns   t if the integer is odd, NIL otherwise
  1829.  
  1830. (subsetp <list1> <list2> &key :test :test-not :key)        IS SET A SUBSET?
  1831.      <list1>   the first list
  1832.      <list2>   the second list
  1833.      :test     test function (defaults to eql)
  1834.      :test-not test function (sense inverted)
  1835.      :key      function to  apply to  test function arguments  (defaults to
  1836.                identity)
  1837.      returns   t if  every element of the first list is in the second list,
  1838.                NIL otherwise
  1839.  
  1840. (eq <expr1> <expr2>)                             ARE THE EXPRESSIONS EQUAL?
  1841. (eql <expr1> <expr2>)
  1842. (equal <expr1> <expr2>)
  1843. (equalp <expr1> <expr2>)
  1844.      equalp defined in common.lsp
  1845.      <expr1>   the first expression
  1846.      <expr2>   the second expression
  1847.      returns   t  if  equal,  NIL  otherwise. Each  is  progressively  more
  1848.                liberal in what is "equal":
  1849.                eq: identical  pointers --  works with characters,  symbols,
  1850.                          and arbitrarily small integers
  1851.                eql: works with  all numbers, if  same type (see  also =  on
  1852.                page 53)
  1853.                equal: lists and strings
  1854.                equalp: case  insensitive characters (and  strings), numbers
  1855.                          of differing types, arrays (which can be equalp to
  1856.                          string containing same elements)
  1857.  
  1858. (typep <expr> <type>)                             IS THIS A SPECIFIED TYPE?
  1859.      <expr>    the expression to test
  1860.      <type>    the  type specifier.  Symbols  can either  be  one of  those
  1861.                listed under type-of (on page 86) or one of:
  1862.                ATOM      any atom
  1863.                NULL      NIL
  1864.                LIST      matches NIL or any cons cell
  1865.                STREAM    any stream
  1866.                NUMBER    any number type
  1867.                RATIONAL  fixnum or ratio (math extension)
  1868.                STRUCT    any structure (except hash-table)
  1869.                FUNCTION  any function, as defined by functionp (page 65)
  1870.                The specifer can also be  a form (which can be  nested). All
  1871.                form elements are quoted. Valid form cars:
  1872.                or        any of the cdr type specifiers must be true
  1873.                and       all of the cdr type specifiers must be true
  1874.                not       the single cdr type specifier must be false
  1875.                satisfies the  result of applying the cdr predicate function
  1876.                          to <expr>
  1877.                member    <expr> must be eql to one of the cdr values
  1878.                object    <expr> must  be an  object, of class  specified by
  1879.                          the  single  cdr value.  The  cdr value  can  be a
  1880.                          symbol which must evaluate to a class.
  1881.                Note that  everything is of type  T, and nothing  is of type
  1882.                NIL.
  1883.      returns   t if <expr> is of type <type>, NIL otherwise.
  1884.  
  1885. (cond <pair>...)                                     EVALUATE CONDITIONALLY
  1886.      fsubr
  1887.      <pair>    pair consisting of:
  1888.                (<pred> <expr>...)
  1889.                where
  1890.                <pred>    is a predicate expression
  1891.                <expr>    evaluated if the predicate is not NIL
  1892.      returns   the value of the first expression whose predicate is not NIL
  1893.  
  1894. (and <expr>...)                    THE LOGICAL AND OF A LIST OF EXPRESSIONS
  1895.      fsubr
  1896.      <expr>    the expressions to be ANDed
  1897.      returns   NIL if any  expression evaluates to NIL, otherwise the value
  1898.                of  the last  expression  (evaluation  of expressions  stops
  1899.                after the first expression that evaluates to NIL)
  1900.  
  1901. (or <expr>...)                      THE LOGICAL OR OF A LIST OF EXPRESSIONS
  1902.      fsubr
  1903.      <expr>    the expressions to be ORed
  1904.      returns   NIL if all expressions evaluate to NIL, otherwise  the value
  1905.                of the  first non-NIL expression (evaluation  of expressions
  1906.                stops  after the first expression  that does not evaluate to
  1907.                NIL)
  1908.  
  1909. (if <texpr> <expr1> [<expr2>])           EVALUATE EXPRESSIONS CONDITIONALLY
  1910.      fsubr
  1911.      <texpr>   the test expression
  1912.      <expr1>   the expression to be evaluated if texpr is non-NIL
  1913.      <expr2>   the expression to be evaluated if texpr is NIL
  1914.      returns   the value of the selected expression
  1915.  
  1916. (when <texpr> <expr>...)             EVALUATE ONLY WHEN A CONDITION IS TRUE
  1917.      fsubr
  1918.      <texpr>   the test expression
  1919.      <expr>    the expression(s) to be evaluted if texpr is non-NIL
  1920.      returns   the value of the last expression or NIL
  1921.  
  1922. (unless <texpr> <expr>...)          EVALUATE ONLY WHEN A CONDITION IS FALSE
  1923.      fsubr
  1924.      <texpr>   the test expression
  1925.      <expr>    the expression(s) to be evaluated if texpr is NIL
  1926.      returns   the value of the last expression or NIL
  1927.  
  1928. (case <expr> <case>...[(t <expr>)])                          SELECT BY CASE
  1929.      fsubr
  1930.      <expr>    the selection expression
  1931.      <case>    pair consisting of:
  1932.                (<value> <expr>...)
  1933.                where:
  1934.                <value>   is a  single expression  or a list  of expressions
  1935.                          (unevaluated)
  1936.                <expr>    are expressions to execute if the case matches
  1937.      (t <expr>)          default case (no previous matching)
  1938.      returns   the value of the last expression of the matching case
  1939.  
  1940. (let (<binding>...) <expr>...)                        CREATE LOCAL BINDINGS
  1941. (let* (<binding>...) <expr>...)                 LET WITH SEQUENTIAL BINDING
  1942.      fsubr
  1943.      <binding> the variable bindings each of which is either:
  1944.                1)        a symbol (which is initialized to NIL)
  1945.                2)        a  list whose car is a symbol and whose cadr is an
  1946.                          initialization expression
  1947.      <expr>    the expressions to be evaluated
  1948.      returns   the value of the last expression
  1949.  
  1950. (flet (<binding>...) <expr>...)                      CREATE LOCAL FUNCTIONS
  1951. (labels (<binding>...) <expr>...)             FLET WITH RECURSIVE FUNCTIONS
  1952. (macrolet (<binding>...) <expr>...)                     CREATE LOCAL MACROS
  1953.      fsubr
  1954.      <binding> the function bindings each of which is:
  1955.                (<sym> <fargs> <expr>...)
  1956.                where:
  1957.                <sym>     the function/macro name
  1958.                <fargs>   formal argument list (lambda list)
  1959.                <expr>    expressions   constituting   the   body   of   the
  1960.                          function/macro
  1961.      <expr>    the expressions to be evaluated
  1962.      returns   the value of the last expression
  1963.  
  1964. (catch <sym> <expr>...)               EVALUATE EXPRESSIONS AND CATCH THROWS
  1965.      fsubr
  1966.      <sym>     the catch tag
  1967.      <expr>    expressions to evaluate
  1968.      returns   the value of the last expression the throw expression
  1969.  
  1970. (throw <sym> [<expr>])                                     THROW TO A CATCH
  1971.      fsubr
  1972.      <sym>     the catch tag
  1973.      <expr>    the value for the catch to return (defaults to NIL)
  1974.      returns   never returns
  1975.  
  1976. (unwind-protect <expr> <cexpr>...)      PROTECT EVALUATION OF AN EXPRESSION
  1977.      fsubr
  1978.      <expr>    the expression to protect
  1979.      <cexpr>   the cleanup expressions
  1980.      returns   the value of the expression
  1981.      Note:   unwind-protect guarantees  to execute the  cleanup expressions
  1982.      even  if a non-local exit  terminates the evaluation  of the protected
  1983.      expression
  1984.  
  1985. (loop <expr>...)                                         BASIC LOOPING FORM
  1986.      fsubr
  1987.      <expr>    the body of the loop
  1988.      returns   never returns (must use non-local exit, such as RETURN)
  1989.  
  1990. (do (<binding>...) (<texpr> <rexpr>...) <expr>...)     GENERAL LOOPING FORM
  1991. (do* (<binding>...) (<texpr> <rexpr>...) <expr>...)
  1992.      fsubr. do binds simultaneously, do* binds sequentially
  1993.      <binding> the variable bindings each of which is either:
  1994.                1)        a symbol (which is initialized to NIL)
  1995.                2)        a list of the form: (<sym> <init> [<step>])
  1996.                where:
  1997.                          <sym>     is the symbol to bind
  1998.                          <init>    the initial value of the symbol
  1999.                          <step>    a step expression
  2000.      <texpr>   the termination test expression
  2001.      <rexpr>   result expressions (the default is NIL)
  2002.      <expr>    the body of the loop (treated like an implicit prog)
  2003.      returns   the value of the last result expression
  2004.  
  2005. (dolist (<sym> <expr> [<rexpr>]) <expr>...)             LOOP THROUGH A LIST
  2006.      fsubr
  2007.      <sym>     the symbol to bind to each list element
  2008.      <expr>    the list expression
  2009.      <rexpr>   the result expression (the default is NIL)
  2010.      <expr>    the body of the loop (treated like an implicit prog)
  2011.      returns   the result expression
  2012.  
  2013. (dotimes (<sym> <expr> [<rexpr>]) <expr>...)          LOOP FROM ZERO TO N-1
  2014.      fsubr
  2015.      <sym>     the symbol to bind to each value from 0 to n-1
  2016.      <expr>    the number of times to loop
  2017.      <rexpr>   the result expression (the default is NIL)
  2018.      <expr>    the body of the loop (treated like an implicit prog)
  2019.      returns   the result expression
  2020.  
  2021. (prog (<binding>...) <expr>...)                         THE PROGRAM FEATURE
  2022. (prog* (<binding>...) <expr>...)               PROG WITH SEQUENTIAL BINDING
  2023.      fsubr -- equivalent to (let () (block NIL (tagbody ...)))
  2024.      <binding> the variable bindings each of which is either:
  2025.                1)        a symbol (which is initialized to NIL)
  2026.                2)        a list whose car is a  symbol and whose cadr is an
  2027.                          initialization expression
  2028.      <expr>    expressions to evaluate or tags (symbols)
  2029.      returns   NIL or the argument passed to the return function
  2030.  
  2031. (block <name> <expr>...)                                        NAMED BLOCK
  2032.      fsubr
  2033.      <name>    the block name (quoted symbol)
  2034.      <expr>    the block body
  2035.      returns   the value of the last expression
  2036.  
  2037. (return [<expr>])                  CAUSE A PROG CONSTRUCT TO RETURN A VALUE
  2038.      fsubr
  2039.      <expr>    the value (defaults to NIL)
  2040.      returns   never returns
  2041.  
  2042. (return-from <name> [<value>])        RETURN FROM A NAMED BLOCK OR FUNCTION
  2043.      fsubr.  In traditional  Xlisp,  the names  are  dynamically scoped.  A
  2044.      compilation option (default) uses lexical scoping like Common Lisp.
  2045.      <name>    the  block or function name (quoted symbol). If name is NIL,
  2046.                use function RETURN.
  2047.      <value>   the value to return (defaults to NIL)
  2048.      returns   never returns
  2049.  
  2050. (tagbody <expr>...)                                       BLOCK WITH LABELS
  2051.      fsubr
  2052.      <expr>    expression(s) to evaluate or tags (symbols)
  2053.      returns   NIL
  2054.  
  2055. (go <sym>)                                     GO TO A TAG WITHIN A TAGBODY
  2056.      fsubr.  In   traditional  Xlisp,   tags  are  dynamically   scoped.  A
  2057.      compilation option (default) uses lexical scoping like Common Lisp.
  2058.      <sym>     the tag (quoted)
  2059.      returns   never returns
  2060.  
  2061. (progv <slist> <vlist> <expr>...)                  DYNAMICALLY BIND SYMBOLS
  2062.      fsubr
  2063.      <slist>   list of symbols (evaluated)
  2064.      <vlist>   list of values to bind to the symbols (evaluated)
  2065.      <expr>    expression(s) to evaluate
  2066.      returns   the value of the last expression
  2067.  
  2068. (prog1 <expr1> <expr>...)                  EXECUTE EXPRESSIONS SEQUENTIALLY
  2069.      fsubr
  2070.      <expr1>   the first expression to evaluate
  2071.      <expr>    the remaining expressions to evaluate
  2072.      returns   the value of the first expression
  2073.  
  2074. (prog2 <expr1> <expr2> <expr>...)          EXECUTE EXPRESSIONS SEQUENTIALLY
  2075.      fsubr
  2076.      <expr1>   the first expression to evaluate
  2077.      <expr2>   the second expression to evaluate
  2078.      <expr>    the remaining expressions to evaluate
  2079.      returns   the value of the second expression
  2080.  
  2081. (progn <expr>...)                          EXECUTE EXPRESSIONS SEQUENTIALLY
  2082.      fsubr
  2083.      <expr>    the expressions to evaluate
  2084.      returns   the value of the last expression (or NIL)
  2085.  
  2086. (read [<stream> [<eofp> [<eof> [<rflag>]]]])             READ AN EXPRESSION
  2087.      NOTE:  there has been an  incompatible change in  arguments from prior
  2088.      versions.
  2089.      <stream>  the input stream (default, or NIL, is *standard-input*, T is
  2090.                *terminal-io*)
  2091.      <eofp>    When T, return EOF on  end of file, and when NIL,  signal an
  2092.                error on end of file (default is T)
  2093.      <eof>     the value to return on end of file (default is NIL)
  2094.      <rflag>   recursive read flag. The value is ignored
  2095.      returns   the expression read
  2096.  
  2097. (set-macro-character <ch> <fcn> [ T ])                    MODIFY READ TABLE
  2098.      defined in init.lsp
  2099.      <ch>      character to define
  2100.      <fcn>     function to bind to character (see page 12)
  2101.      T         if TMACRO rather than NMACRO
  2102.  
  2103. (get-macro-character <ch>)                               EXAMINE READ TABLE
  2104.      defined in init.lsp
  2105.      <ch>      character
  2106.      returns   function bound to character
  2107.  
  2108. (print <expr> [<stream>])                 PRINT AN EXPRESSION ON A NEW LINE
  2109.      The expression is printed using prin1, then current line is terminated
  2110.      (Note: this is backwards from Common Lisp).
  2111.      <expr>    the expression to be printed
  2112.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2113.                is *terminal-io*)
  2114.      returns   the expression
  2115.  
  2116. (prin1 <expr> [<stream>])                               PRINT AN EXPRESSION
  2117.      symbols, cons cells (without circularities), arrays, strings, numbers,
  2118.      and characters are  printed in  a format generally  acceptable to  the
  2119.      read  function.  Printing  format  can  be  affected   by  the  global
  2120.      formatting variables:  *print-level* and *print-length*  for lists and
  2121.      arrays,  *integer-format*  for  fixnums, *float-format*  for  flonums,
  2122.      *ratio-format* for ratios,  and *print-case* and  *readtable-case* for
  2123.      symbols.
  2124.      <expr>    the expression to be printed
  2125.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2126.                is *terminal-io*)
  2127.      returns   the expression
  2128.  
  2129. (princ <expr> [<stream>])               PRINT AN EXPRESSION WITHOUT QUOTING
  2130.      Like  PRIN1  except  symbols  (including   uninterned),  strings,  and
  2131.      characters are printed without using any quoting mechanisms.
  2132.      <expr>    the expressions to be printed
  2133.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2134.                is *terminal-io*)
  2135.      returns   the expression
  2136.  
  2137. (pprint <expr> [<stream>])                       PRETTY PRINT AN EXPRESSION
  2138.      Uses prin1 for printing.
  2139.      <expr>    the expressions to be printed
  2140.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2141.                is *terminal-io*)
  2142.      returns   the expression
  2143.  
  2144. (terpri [<stream>])                        TERMINATE THE CURRENT PRINT LINE
  2145.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2146.                is *terminal-io*)
  2147.      returns   NIL
  2148.  
  2149. (fresh-line [<stream>])                                    START A NEW LINE
  2150.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2151.                is *terminal-io*)
  2152.      returns   t  if a new list was started, NIL if already at the start of
  2153.                a line.
  2154.  
  2155. (flatsize <expr>)              LENGTH OF PRINTED REPRESENTATION USING PRIN1
  2156.      <expr>    the expression
  2157.      returns   the length
  2158.  
  2159. (flatc <expr>)                 LENGTH OF PRINTED REPRESENTATION USING PRINC
  2160.      <expr>    the expression
  2161.      returns   the length
  2162.  
  2163. (y-or-n-p [<fmt> [<arg>...]])                      ASK A YES OR NO QUESTION
  2164.      defined in common.lsp. Uses *terminal-io* stream for interaction.
  2165.      <fmt>     optional format string for question (see page 75)
  2166.      <arg>     arguments, if any, for format string
  2167.      returns   T for yes, NIL for no.
  2168.  
  2169. (format <stream> <fmt> [<arg>...])                      DO FORMATTED OUTPUT
  2170.      <stream>  the output stream (T is *standard-output*)
  2171.      <fmt>     the format string
  2172.      <arg>     the format arguments
  2173.      returns   output string if <stream> is NIL, NIL otherwise
  2174. The format string can contain characters that  should be copied directly to
  2175. the output and formatting directives. The formatting directives are:
  2176.      ~A or ~a  print next argument using princ
  2177.      ~S or ~s  print next argument using prin1
  2178.      ~D or ~d  print next argument integer
  2179.      ~E or ~e  print next argument in exponential form
  2180.      ~F or ~f  print next argument in fixed point form
  2181.      ~G or ~g  print next  argument  using either  ~E  or ~F  depending  on
  2182.                magnitude
  2183.      ~O or ~o  print next argument as octal integer
  2184.      ~X or ~x  print next argument as hexidecimal integer
  2185.      ~%        start a new line
  2186.      ~&        start a new line if not on a new line
  2187.      ~|        start a new page
  2188.      ~?        use next argument as recursive format string
  2189.      ~( ~)     process format string with case conversion
  2190.      ~{ ~}     process format string repetitively
  2191.      ~[ ~; ~]  process format string conditionally
  2192.      ~*        skip arguments
  2193.      ~t or ~T  go to a specified column
  2194.      ~~        print a tilde character
  2195.      ~\n       ignore return and following whitespace
  2196.  
  2197. (read-char [<stream>[<eofp>[<eof>]]])        READ A CHARACTER FROM A STREAM
  2198.      NOTE: New eof arguments are incompatible with older XLISP versions.
  2199.      <stream>  the input stream (default, or NIL, is *standard-input*, T is
  2200.                *terminal-io*)
  2201.      <eofp>    When T, return EOF on  end of file, and when NIL,  signal an
  2202.                error on end of file (default is T)
  2203.      <eof>     the value to return on end of file (default is NIL)
  2204.      returns   the character or <eof> at end of file
  2205.  
  2206. (peek-char [<flag> [<stream>]])                  PEEK AT THE NEXT CHARACTER
  2207.      <flag>    flag for skipping white space (default is NIL)
  2208.      <stream>  the input stream (default, or NIL, is *standard-input*, T is
  2209.                *terminal-io*)
  2210.      returns   the character or NIL at end of file
  2211.  
  2212. (write-char <ch> [<stream>])                  WRITE A CHARACTER TO A STREAM
  2213.      <ch>      the character to write
  2214.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2215.                is *terminal-io*)
  2216.      returns   the character
  2217.  
  2218. (read-line [<stream>[<eofp>[<eof>]]])             READ A LINE FROM A STREAM
  2219.      NOTE: New eof arguments are incompatible with older XLISP versions.
  2220.      <stream>  the input stream (default, or NIL, is *standard-input*, T is
  2221.                *terminal-io*)
  2222.      <eofp>    When T, return EOF on  end of file, and when NIL,  signal an
  2223.                error on end of file (default is T)
  2224.      <eof>     the value to return on end of file (default is NIL)
  2225.      returns   the string excluding the #\newline, or <eof> at end of file
  2226.  
  2227. (open <fname> &key :direction :element-type :if-exists :if-does-not-exist)
  2228.                                                          OPEN A FILE STREAM
  2229.      The function OPEN has been significantly enhanced over original XLISP.
  2230.      The original function only had the  :direction keyword argument, which
  2231.      could only  have  the values  :input or  :output. When  used with  the
  2232.      :output keyword, it was equivalent to (open <fname> :direction :output
  2233.      :if-exists :supersede). A maximum of ten files can be open  at any one
  2234.      time, including any files open via the LOAD, DRIBBLE, SAVE and RESTORE
  2235.      commands. The open command  may force a garbage collection  to reclaim
  2236.      file slots used by unbound file streams.
  2237.      <fname>        the file  name string,  symbol, or file  stream created
  2238.                     via OPEN. In the last case, the name is used  to open a
  2239.                     second stream  on  the  same  file --  this  can  cause
  2240.                     problems if one or more streams is used for writing.
  2241.      :direction     Read  and  write  permission  for  stream  (default  is
  2242.                     :input).
  2243.        :input       Open file for read operations only.
  2244.        :probe       Open file for reading,  then close it (use to  test for
  2245.                     file existance)
  2246.        :output      Open file for write operations only.
  2247.        :io          Like :output, but reading also allowed.
  2248.      :element-type  FIXNUM or CHARACTER (default is CHARACTER), as returned
  2249.                     by  type-of function  (on page  86). Files  opened with
  2250.                     type FIXNUM  are binary  files instead of  ascii, which
  2251.                     means no  crlf to/from  lf conversion takes  place, and
  2252.                     control-Z will not terminate an  input file. It is  the
  2253.                     intent  of  Common  Lisp  that  binary  files  only  be
  2254.                     accessed  with  read-byte  and write-byte  while  ascii
  2255.                     files be  accessed with any function  but read-byte and
  2256.                     write-byte. XLISP does not enforce that distinction.
  2257.      :if-exists     action  to take  if file  exists. Argument  ignored for
  2258.                     :input (file is positioned at start) or :probe (file is
  2259.                     closed)
  2260.        :error       give error message
  2261.        :rename      rename file to generated backup  name, then open a  new
  2262.                     file of the original name. This is the default action
  2263.        :new-version same as :rename
  2264.        :overwrite   file is positioned to start, original data intact
  2265.        :append      file is positioned to end
  2266.        :supersede   delete original file and open new file of the same name
  2267.        :rename-and-delete  same as :supersede
  2268.        NIL          close file and return NIL
  2269.      :if-does-not-exist    action to take if file does not exist.
  2270.        :error       give error  message (default for :input,  or :overwrite
  2271.                     or :append)
  2272.        :create      create  a new file (default for :output or :io when not
  2273.                     :overwrite or :append)
  2274.        NIL          return NIL (default for :probe)
  2275.      returns        a file stream, or sometimes NIL
  2276.  
  2277. (close <stream>)                                        CLOSE A FILE STREAM
  2278.      The stream becomes a  "closed stream." Note that unbound  file streams
  2279.      are closed automatically during a garbage collection.
  2280.      <stream>  the stream, which may be a string stream
  2281.      returns   t  if stream closed, NIL  if terminal (cannot  be closed) or
  2282.                already closed.
  2283.  
  2284. (delete-file <fname>)                                         DELETE A FILE
  2285.      <fname>   file name string, symbol or a stream opened with OPEN
  2286.      returns   t  if file  does not exist  or is  deleted. If  <fname> is a
  2287.                stream,  the stream is closed before the file is deleted. An
  2288.                error occurs if the file cannot be deleted.
  2289.  
  2290. (truename <fname>)                                OBTAIN THE FILE PATH NAME
  2291.      <fname>   file name string, symbol, or a stream opened with OPEN
  2292.      returns   string  representing the  true file  name (absolute  path to
  2293.      file).
  2294.  
  2295. (with-open-file (<var> <fname> [<karg>...]) [<expr>...])
  2296.                                                       EVALUATE USING A FILE
  2297.      Defined in common.lsp  as a  macro. File  will always  be closed  upon
  2298.      completion
  2299.      <var>     symbol name to bind  stream to while evaluating expresssions
  2300.                (quoted)
  2301.      <fname>   file name string or symbol
  2302.      <karg>    keyword arguments for the implicit open command
  2303.      <expr>    expressions to evaluate while file is open (implicit progn)
  2304.      returns   value of last <expr>.
  2305.  
  2306. (read-byte [<stream>[<eofp>[<eof>]]])             READ A BYTE FROM A STREAM
  2307.      NOTE: New eof arguments are incompatible with older XLISP versions.
  2308.      <stream>  the input stream (default, or NIL, is *standard-input*, T is
  2309.                *terminal-io*)
  2310.      <eofp>    When T, return EOF on  end of file, and when NIL,  signal an
  2311.                error on end of file (default is T)
  2312.      <eof>     the value to return on end of file (default is NIL)
  2313.      returns   the byte (integer) or <eof> at end of file
  2314.  
  2315. (write-byte <byte> [<stream>])                     WRITE A BYTE TO A STREAM
  2316.      <byte>    the byte to write (integer)
  2317.      <stream>  the output stream (default,  or NIL, is *standard-output*, T
  2318.                is *terminal-io*)
  2319.      returns   the byte (integer)
  2320.  
  2321. (file-length <stream>)                                   GET LENGTH OF FILE
  2322.      For an ascii file, the  length reported may be larger than  the number
  2323.      of characters read or written because of CR conversion.
  2324.      <stream>  the file stream (should be disk file)
  2325.      returns   length of file, or NIL if cannot be determined.
  2326.  
  2327. (file-position <stream> [<expr>])                  GET OR SET FILE POSITION
  2328.      For an ascii file, the file position may not be the same as the number
  2329.      of characters read  or written  because of CR  conversion. It will  be
  2330.      correct  when using  file-position to  position a  file at  a location
  2331.      earlier reported by file-position.
  2332.      <stream>  the file stream (should be a disk file)
  2333.      <expr>    desired  file position,  if  setting position.  Can also  be
  2334.                :start for start of file or :end for end of file.
  2335.      returns   if  setting position,  and  successful, then  T; if  getting
  2336.                position and successful then the position; otherwise NIL
  2337.  
  2338. (make-string-input-stream <str> [<start> [<end>]])
  2339.      <str>     the string
  2340.      <start>   the starting offset
  2341.      <end>     the ending offset + 1 or NIL for end of string
  2342.      returns   an unnamed stream that reads from the string
  2343.  
  2344. (make-string-output-stream)
  2345.      returns   an unnamed output stream
  2346.  
  2347. (get-output-stream-string <stream>)
  2348.      The output stream is emptied by this function
  2349.      <stream>  the output stream
  2350.      returns   the output so far as a string
  2351.  
  2352. (get-output-stream-list <stream>)
  2353.      The output stream is emptied by this function
  2354.      <stream>  the output stream
  2355.      returns   the output so far as a list
  2356.  
  2357. (with-input-from-string (<var> <str> &key :start :end :index) [<expr>...])
  2358.      Defined in common.lsp as a macro
  2359.      <var>     symbol  that   stream  is  bound  to   during  execution  of
  2360.                expressions (quoted)
  2361.      <str>     the string
  2362.      :start    starting offset into string (default 0)
  2363.      :end      ending offset + 1  (default, or NIL, is end of string)
  2364.      :index    setf  place form which  gets final  index into  string after
  2365.                last expression is executed (quoted)
  2366.      <expr>    expressions to evaluate (implicit progn)
  2367.      returns   the value of the last <expr>
  2368.  
  2369. (with-output-to-string (<var>) [<expr>...])
  2370.      Defined in common.lsp as a macro
  2371.      <var>     symbol  that   stream  is  bound  to   during  execution  of
  2372.                expressions (quoted)
  2373.      <expr>    expressions to evaluate (implicit progn)
  2374.      returns   contents of stream, as a string
  2375.  
  2376. (trace [<sym>...])                         ADD A FUNCTION TO THE TRACE LIST
  2377.      fsubr
  2378.      <sym>     the function(s) to add (quoted)
  2379.      returns   the trace list
  2380.  
  2381. (untrace [<sym>...])                  REMOVE A FUNCTION FROM THE TRACE LIST
  2382.      fsubr. If no functions given, all functions are removed from the trace
  2383.      list.
  2384.      <sym>     the function(s) to remove (quoted)
  2385.      returns   the trace list
  2386.  
  2387. (error <emsg> {<arg>})                       SIGNAL A NON-CORRECTABLE ERROR
  2388.      Note  that the definition  of this function has  changed from 2.1e and
  2389.      earlier so to match Common Lisp.
  2390.      <emsg>    the error message string, which is processed by FORMAT
  2391.      <arg>     optional argument{s} for FORMAT 
  2392.      returns   never returns
  2393.  
  2394. (cerror <cmsg> <emsg> {<arg>})                   SIGNAL A CORRECTABLE ERROR
  2395.      Note that the definition  of this function  has changed from 2.1e  and
  2396.      earlier so to match Common Lisp.
  2397.      <cmsg>    the continue message string, which is processed by FORMAT
  2398.      <emsg>    the error message string, which is processed by FORMAT
  2399.      <arg>     optional argument(s) for both FORMATs (arguments are useable
  2400.                twice)
  2401.      returns   NIL when continued from the break loop
  2402.  
  2403. (break <bmsg> {<arg>})                                   ENTER A BREAK LOOP
  2404.      Note that the  definition of this function  has changed from 2.1e  and
  2405.      earlier so to match Common Lisp.
  2406.      <bmsg>    the break message string, which is processed by FORMAT
  2407.      <arg>     optional argument(s) for FORMAT
  2408.      returns   NIL when continued from the break loop
  2409.  
  2410. (clean-up)                                          CLEAN-UP AFTER AN ERROR
  2411.      returns   never returns
  2412.  
  2413. (top-level)             CLEAN-UP AFTER AN ERROR AND RETURN TO THE TOP LEVEL
  2414.      Runs  the function in  variable *top-level-loop*  (ususally TOP-LEVEL-
  2415. LOOP)
  2416.      returns   never returns
  2417.  
  2418. (continue)                                CONTINUE FROM A CORRECTABLE ERROR
  2419.      returns   never returns
  2420.  
  2421. (errset <expr> [<pflag>])                                       TRAP ERRORS
  2422.      fsubr
  2423.      <expr>    the expression to execute
  2424.      <pflag>   flag to control printing of the error message (default t)
  2425.      returns   the value of  the last expression consed with NIL  or NIL on
  2426.                error
  2427.  
  2428. (baktrace [<n>])                   PRINT N LEVELS OF TRACE BACK INFORMATION
  2429.      <n>       the number of levels (defaults to all levels)
  2430.      returns   NIL
  2431.  
  2432. (evalhook <expr> <ehook> <ahook> [<env>])               EVALUATE WITH HOOKS
  2433.      <expr>    the expression to evaluate.  <ehook> is not used at  the top
  2434.                level.
  2435.      <ehook>   the value for *evalhook*
  2436.      <ahook>   the value for *applyhook*
  2437.      <env>     the  environment (default  is NIL). The  format is  a dotted
  2438.                pair of value (car)  and function (cdr) binding lists.  Each
  2439.                binding  list is a list  of level binding  a-lists, with the
  2440.                innermost a-list  first. The level binding a-list associates
  2441.                the bound symbol with its value.
  2442.      returns   the result of evaluating the expression
  2443.  
  2444. (applyhook <fun> <arglist> <ehook> <ahook>)                APPLY WITH HOOKS
  2445.      <fun>     The function closure. <ahook> is not used  for this function
  2446.                application.
  2447.      <arglist> The list of arguments.
  2448.      <ehook>   the value for *evalhook*
  2449.      <ahook>   the value for *applyhook*
  2450.      returns   the result of applying <fun> to <arglist>
  2451.  
  2452. (debug)                                                 ENABLE DEBUG BREAKS
  2453. (nodebug)                                              DISABLE DEBUG BREAKS
  2454.      Defined in init.lsp
  2455.  
  2456. (load <fname> &key :verbose :print)                      LOAD A SOURCE FILE
  2457.      An  implicit ERRSET exists  in this function  so that  if error occurs
  2458.      during  loading, and *breakenable* is NIL, then the error message will
  2459.      be printed and  NIL will  be returned. The  OS environmental  variable
  2460.      XLPATH is  used as a  search path for  files in this  function. If the
  2461.      filename  does not contain path  separators ('/' for  UNIX, and either
  2462.      '/' or  '\' for MS-DOS) and  XLPATH is defined, then  each pathname in
  2463.      XLPATH is tried in turn until a matching file is found.  If no file is
  2464.      found,  then one last  attempt is made  in the current  directory. The
  2465.      pathnames are separated by either a space or semicolon, and a trailing
  2466.      path separator character is optional.
  2467.      <fname>   the filename string,  symbol, or a file stream  created with
  2468.                OPEN. The extension "lsp" is assumed.
  2469.      :verbose  the verbose flag (default is t)
  2470.      :print    the print flag (default is NIL)
  2471.      returns   t if successful, else NIL
  2472.  
  2473. (restore <fname>)                             RESTORE WORKSPACE FROM A FILE
  2474.      The OS  environmental variable XLPATH  is used  as a  search path  for
  2475.      files in this function. See the note under function "load", above. The
  2476.      standard  system streams  are  restored to  the  defaults as  of  when
  2477.      XLISP-PLUS  was started. Files streams  are restored in  the same mode
  2478.      they were created, if possible, and  are positioned where they were at
  2479.      the time of the  save. If the files  have been altered or moved  since
  2480.      the time  of the save, the restore  will not be completely successful.
  2481.      Memory  allocation will  not be  the same as  the current  settings of
  2482.      ALLOC are  used. Execution  proceeds at the  top-level read-eval-print
  2483.      loop. The  state of  the transcript  logging is  not affected  by this
  2484.      function.
  2485.      <fname>   the filename string,  symbol, or a file stream  created with
  2486.                OPEN. The extension "wks" is assumed.
  2487.      returns   NIL on failure, otherwise never returns
  2488.  
  2489. (save <fname>)                                     SAVE WORKSPACE TO A FILE
  2490.      You cannot save from within a load.  Not all of the state may be saved
  2491.      -- see "restore", above. By saving a workspace with the  name "xlisp",
  2492.      that  workspace   will  be   loaded  automatically  when   you  invoke
  2493.      XLISP-PLUS.
  2494.      <fname>   the filename string,  symbol, or a file stream  created with
  2495.                OPEN. The extension "wks" is assumed.
  2496.      returns   t if workspace was written, NIL otherwise
  2497.  
  2498. (savefun <fcn>)                                     SAVE FUNCTION TO A FILE
  2499.      defined in init.lsp
  2500.      <fcn>     function name (saves it to file of same name, with extension
  2501.                ".lsp")
  2502.      returns   t if successful
  2503.  
  2504. (dribble [<fname>])            CREATE A FILE WITH A TRANSCRIPT OF A SESSION
  2505.      <fname>   file name string, symbol, or file stream created with OPEN
  2506.                (if missing, close current transcript)
  2507.      returns   t if the transcript is opened, NIL if it is closed
  2508.  
  2509. (gc)                                               FORCE GARBAGE COLLECTION
  2510.      returns   NIL
  2511.  
  2512. (expand [<num>])                           EXPAND MEMORY BY ADDING SEGMENTS
  2513.      <num>     the number of segments to add, default 1
  2514.      returns   the number of segments added
  2515.  
  2516. (alloc <num> [<num2>])                                  CHANGE SEGMENT SIZE
  2517.      <num>     the number of nodes to allocate
  2518.      <num2>    the  number  of pointer  elements  to allocate  in  an array
  2519.                segment (when dynamic array allocation compiled). Default is
  2520.                no change.
  2521.      returns   the old number of nodes to allocate
  2522.  
  2523. (room)                                    SHOW MEMORY ALLOCATION STATISTICS
  2524.      Statistics (which are sent to *STANDARD-OUTPUT*) include:
  2525.                Nodes - number of nodes, free and used
  2526.                Free nodes - number of free nodes
  2527.                Segments - number of node segments, including those reserved
  2528.                          for characters and small integers.
  2529.                Allocate  -  number of  nodes to  allocate  in any  new node
  2530.                          segments
  2531.                Total  - total  memory  bytes allocated  for node  segments,
  2532.                          arrays, and strings
  2533.                Collections - number of garbage collections
  2534.                Time  -  time  spent  performing   garbage  collections  (in
  2535.                seconds)
  2536.      When dynamic  array allocation  is compiled, the  following additional
  2537.      statistics are printed:
  2538.                Vector  nodes  - number  of  pointers  in arrays  and  (size
  2539.                          equivalent) strings
  2540.                Vector free - free  space in vector area (may  be fragmented
  2541.                          across segments)
  2542.                Vector  segs  - number  of  vector  segments. Increases  and
  2543.                          decreases as needed.
  2544.                Vec allocate - number of pointer elements to allocate in any
  2545.                          new vector segment
  2546.      returns   NIL
  2547.  
  2548. (time <expr>)                                        MEASURE EXECUTION TIME
  2549.      fsubr.
  2550.      <expr>    the expression to evaluate
  2551.      returns   the result of  the expression. The execution time is printed
  2552.                to *TRACE-OUTPUT*
  2553.  
  2554. (get-internal-real-time)                             GET ELAPSED CLOCK TIME
  2555. (get-internal-run-time)                          GET ELAPSED EXECUTION TIME
  2556.      returns   integer      time      in       system      units       (see
  2557.                internal-time-units-per-second  on  page  23).   meaning  of
  2558.                absolute values is system dependent.
  2559.  
  2560. (coerce <expr> <type>)                  FORCE EXPRESSION TO DESIGNATED TYPE
  2561.      Sequences  can  be  coerced  into other  sequences,  single  character
  2562.      strings or  symbols with  single character  printnames can  be coerced
  2563.      into characters, fixnums  can be coerced  into characters or  flonums.
  2564.      Ratios can be coerced into flonums. Flonums and  ratios can be coerced
  2565.      into complex (so can fixnums, but they turn back into fixnums).
  2566.      <expr>    the expression to coerce
  2567.      <type>    desired type, as returned by type-of (see page 86)
  2568.      returns   <expr> if type is correct, or converted object.
  2569.  
  2570. (type-of <expr>)                         RETURNS THE TYPE OF THE EXPRESSION
  2571.      It is recommended that typep  be used instead, as it is  more general.
  2572.      In the original XLISP, the value NIL was returned for NIL.
  2573.      <expr>    the expression to return the type of
  2574.      returns   One of the symbols:
  2575.                LIST                for NIL (lists, conses return CONS)
  2576.                SYMBOL              for symbols
  2577.                OBJECT              for objects
  2578.                CONS                for conses
  2579.                SUBR                for built-in functions
  2580.                FSUBR               for special forms
  2581.                CLOSURE             for defined functions
  2582.                STRING              for strings
  2583.                FIXNUM              for integers
  2584.                RATIO               for ratios
  2585.                FLONUM              for floating point numbers
  2586.                COMPLEX             for complex numbers
  2587.                CHARACTER           for characters
  2588.                FILE-STREAM         for file pointers
  2589.                UNNAMED-STREAM      for unnamed streams
  2590.                ARRAY               for arrays
  2591.                HASH-TABLE          for hash tables
  2592.                sym                 for structures of type "sym"
  2593.  
  2594. (peek <addrs>)                                 PEEK AT A LOCATION IN MEMORY
  2595.      <addrs>   the address to peek at (integer)
  2596.      returns   the value at the specified address (integer)
  2597.  
  2598. (poke <addrs> <value>)                             POKE A VALUE INTO MEMORY
  2599.      <addrs>   the address to poke (integer)
  2600.      <value>   the value to poke into the address (integer)
  2601.      returns   the value
  2602.  
  2603. (address-of <expr>)                        GET THE ADDRESS OF AN XLISP NODE
  2604.      <expr>    the node
  2605.      returns   the address of the node (integer)
  2606.  
  2607. (get-key)                                     READ A KEYSTROKE FROM CONSOLE
  2608.      OS dependent.
  2609.      returns   integer value of key (no echo)
  2610.  
  2611. (system <command>)                                 EXECUTE A SYSTEM COMMAND
  2612.      OS dependent -- not always available.
  2613.      <command> Command string, if 0 length then spawn OS shell
  2614.      returns   T if successful (note that MS/DOS command.com always returns
  2615.                success)
  2616.  
  2617. (set-stack-mark <size>)                      SET SYSTEM STACK WARNING POINT
  2618.      OS  dependent --  not  always available.  The  system will  perform  a
  2619.      continuable  error when the  amount of  remaining system  stack passes
  2620.      below this setting. The trap is reset  at the top-level. This function
  2621.      is useful for debugging runaway recursive functions.
  2622.      <size>    Remaining stack,  in bytes.  Minimum value  is fixed  at the
  2623.                value that causes the system stack overflow error, while the
  2624.                maximum value is limitied to somewhat less than  the current
  2625.                remaining stack space. Use "0" to turn the warnings off.
  2626.      returns   the previous value.
  2627.  
  2628. (top-level-loop)                                     DEFAULT TOP LEVEL LOOP
  2629.      Runs  the XLISP  top  level read-eval-print  loop, described  earlier.
  2630.      Never returns.
  2631.  
  2632. (reset-system)                                          FLUSH INPUT BUFFERS
  2633.      Used by user-implemented top level loops to flush the input buffer
  2634.      returns   NIL
  2635.  
  2636. (exit)                                                           EXIT XLISP
  2637.      returns   never returns
  2638.  
  2639. (generic <expr>)              CREATE A GENERIC TYPED COPY OF THE EXPRESSION
  2640.      Note: added function, Tom Almy's creation for debugging xlisp.
  2641.      <expr>    the expression to copy
  2642.      returns   NIL if  value is NIL  and NILSYMBOL  compilation option  not
  2643.                declared, otherwise if type is:
  2644.                SYMBOL              copy as an ARRAY
  2645.                OBJECT              copy as an ARRAY
  2646.                CONS                (CONS (CAR <expr>)(CDR <expr>))
  2647.                CLOSURE             copy as an ARRAY
  2648.                STRING              copy of the string
  2649.                FIXNUM              value
  2650.                FLONUM              value
  2651.                RATIO               value
  2652.                CHARACTER           value
  2653.                UNNAMED-STREAM      copy as a CONS
  2654.                ARRAY               copy of the array
  2655.                COMPLEX             copy as an ARRAY
  2656.                HASH-TABLE          copy as an ARRAY
  2657.                structure           copy as an ARRAY
  2658.  
  2659. (eval-when <condition> <body> ...)
  2660.      Macro  defined in common.lsp, and provided to assist in porting Common
  2661.      Lisp applications to XLISP-PLUS.
  2662.      <condition>         List of conditions
  2663.      <body>    expressions which are evaluated if  one of the conditions is
  2664.                EXECUTE or LOAD.
  2665.      returns   result of last body expression
  2666.  
  2667. (cls)                                                         CLEAR DISPLAY
  2668.      Clear the display and position cursor at upper left corner.
  2669.      returns   nil
  2670.  
  2671. (cleol)                                                CLEAR TO END OF LINE
  2672.      Clears current line to end.
  2673.      returns   nil
  2674.  
  2675. (goto-xy [<column> <row>])                       GET OR SET CURSOR POSITION
  2676.      Cursor   is  repositioned   if  optional   arguments   are  specified.
  2677.      Coordinates are clipped to actual size of display.
  2678.      <column>  0-based column (x coordinate)
  2679.      <row>     0-based row (y coordinate)
  2680.      returns   list of original column and row positions
  2681.  
  2682. (color <value>)                                           SET DRAWING COLOR
  2683.      <value>   Drawing color (not checked for validity)
  2684.      returns   <value>
  2685.  
  2686. (move <x1> <y1> [<x2> <y2> ...])                              ABSOLUTE MOVE
  2687. (moverel <x1> <y2> [<x2> <y2> ...])                           RELATIVE MOVE
  2688.      For moverel, all coordinates are relative to the preceeding point.
  2689.      <x1> <y1> Moves to point x1,y1 in anticipation of draw.
  2690.      <x2> <y2> Draws to points specified in additional arguments.
  2691.      returns   T if succeeds, else NIL
  2692.  
  2693. (draw [<x1> <y1> ...])                                        ABSOLUTE DRAW
  2694. (drawrel [<x1> <y1> ...])                                     RELATIVE DRAW
  2695.      For drawrel, all coordinates are relative to the preceeding point.
  2696.      <x1> <y1> Point(s) drawn to, in order.
  2697.      returns   T if succeeds, else NIL
  2698.  
  2699. (mode <ax> [<bx> <width> <height>)                         SET DISPLAY MODE
  2700.      Standard modes require only <ax> argument. Extended modes are  "Super-
  2701.      VGA"  or  "Super-EGA" and  are display  card  specific. Not  all XLISP
  2702.      versions support all modes.
  2703.      <ax>      Graphic mode (value passed in register AX)
  2704.                Common standard Modes:
  2705.                0,1 - 40x25 text
  2706.                2,3 - 80x25 text
  2707.                4,5 - 320x200 4 color graphics (CGA)
  2708.                6 - 640x200 monchrome graphics (CGA)
  2709.                13 - 320x200 16 color graphics (EGA)
  2710.                14 - 640x200 16 color graphics (EGA)
  2711.                16 - 640x350 16 color graphics (EGA)
  2712.                18 - 640x480 16 color graphics (VGA)
  2713.                19 - 320x200 256 color graphics (VGA)
  2714.      <bx>      BX value for some extended graphic modes
  2715.      <width>   width for extended graphic modes
  2716.      <height>  height for extended graphic modes
  2717.      returns   a list of the number of columns, number of lines (1 for CGA),
  2718.                maximum  X  graphic coordinate (-1 for text modes),  and  the
  2719.                maximum  Y graphic coordinate (-1 for text modes), or NIL  if 
  2720.            fails
  2721.