Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference
*rslt*
  | Type: | - | system variable | 
  | Source: | - | not explicitely defined | 
Syntax
Description
When a function returns more than one value, the global Nyquist *rslt*
variable is set to a list of the 'extra' values. This provides a
make-shift version of the 'multiple-value-return'
facility in Common Lisp.
Examples
(defun cl:values (&rest args)
  (setq *rslt* args)
  (first args))
(values 1 2 3)  => 1
*rslt*          => (1 2 3)
See defun, first,
rest, 
&rest,
setq.
See also:
  Back to Top
Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference