MTS 8: LISP and SLIP in MTS
Page Revised February 1979 June 1976
.UP ?
:... (COND ((NULL X) NIL) (T (CONS X X))))
.?
:... (COND ((NULL X) NIL) (T (CONS X X))))
.1 ?
:(COND ((NULL X) NIL) (T (CONS X X)))
.1 UP
:(COND ((NULL X) NIL) (T (CONS X X)))
Command: !0
The !0 command is similar to the UP command, except that it
produces the entire higher-level list, rather than a tail of that
list. In addition, if the current expression is a tail of some
list (in which case the UP command has no effect), the !0 command
specifies the entire list as the new current expression.
Examples:
.?
:(LAMBDA (X) (COND ((NULL X) NIL (T (CONS X X))))
.3 UP ?
| :... (COND ((NULL X) NIL) (T (CONS X X))))
.!0 ?
:(LAMBDA (X) (COND ((NULL X) NIL)(T (CONS X X))))
.3 !0 ?
:(LAMBDA (X) (COND ((NULL X) NIL)(T (CONS X X))))
Command: 0
The 0 (zero) command has an effect somewhere between UP and !0.
Since its precise effect defies description, its use is not
recommended.
Commands: NX, BK
The NX command specifies the next element to the right of the
current expression as the new current expression. It is equivalent
to the command sequence UP 2. The BK command is the inverse of NX;
it specifies, as the current expression, the next element to the
left.
Examples:
.?
:(LAMBDA (X) (COND ((NULL X) NIL) (T (CONS X X))))
.1 ?
:LAMBDA
.NX ?
:(X)
.NX ?
:(COND ((NULL X) NIL) (T (CONS X X)))
92 The LISP Editor