add history documentation

This commit is contained in:
Edwin Watkeys 2018-10-31 14:51:49 -04:00
parent 5bcd37477f
commit cbe1b045b4

View file

@ -165,6 +165,13 @@
;;> \item{\scheme|{\exit}| - exit the REPL} ;;> \item{\scheme|{\exit}| - exit the REPL}
;;> ] ;;> ]
;;> The results of the last ten successful evaluations are available
;;> via a history facility. \var{$0} holds the most recent result
;;> while \var{$9} holds the tenth-most recent result. Evaluations
;;> yielding single values are stored as single values while evaluations
;;> that yield multiple values are stored as lists of values.
(define-record-type Repl (define-record-type Repl
(make-repl (make-repl
in out escape module env meta-env make-prompt history-file history raw?) in out escape module env meta-env make-prompt history-file history raw?)