From cbe1b045b412b855620a2a7bc3d68bb55779d9f8 Mon Sep 17 00:00:00 2001 From: Edwin Watkeys Date: Wed, 31 Oct 2018 14:51:49 -0400 Subject: [PATCH] add history documentation --- lib/chibi/repl.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/chibi/repl.scm b/lib/chibi/repl.scm index a6de13cf..8ecc5744 100644 --- a/lib/chibi/repl.scm +++ b/lib/chibi/repl.scm @@ -165,6 +165,13 @@ ;;> \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 (make-repl in out escape module env meta-env make-prompt history-file history raw?)