Inlab Scheme drops into an interactive REPL (Read-Eval-Print-Loop) when called with no further arguments. Within this REPL, there are a few procedures available which allow access, editing and re-execution of previously entered commands and expressions. These procedures are summarised in this chapter, ordered alphabetically.
This procedure allows either to edit and re-execute the last expression entered in interactive mode (entering (!) ) or a selected expression referenced by its number (entering e.g. (! 2) ).
The editor in the variable the-current-editor is invoked to edit the expression.
Example (invoking an external editor at ):
 (define a 1) a  (set! a (+ a 1)) a  a 2  (! 2) ok  a 3 
(!!) repeats the previous entered expression by re-evaluating it in interactive mode of Inlab Scheme and returns the result of this evaluation.
(!! <expression-no>) repeats the previous entered expression with the given expression number by reevaluating it and returns the result of the evaluation.
 (define a 1) a  (set! a (+ a 1)) a  (!!) a  a 3 
This procedure is used with no arguments only in interactive mode to display the content of the current history. The history is keeping the last 20 expressions entered in interactive mode.
 (define a 1) a  (+ a 1) 2  (?) : (define a 1) : (+ a 1) : (?) ok