I have noticed that when I type an operator in REPL, it is often expanded into a value which has something to do with the input/output history.
Specifically I noticed that:
+
,++
... expand to previous inputs,*
,**
... expand to previous outputs,-
expand to the current input
There apparently are more (/
expands to something but I haven't figured it out exactly).
I've tried browsing the clisp docs, but unsuccessfully.
My questions:
- What such magic REPL variables are also there? What do they do?
- Is there a way to access Nth input or output (like IPython's
In
andOut
arrays)?
In
andOut
arrays, thanks! – Argyle_
,__
... which meanOut[-1]
,Out[-2]
etc. – Camire