File: amnesia.tex

package info (click to toggle)
cadabra 1.46-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,244 kB
  • sloc: cpp: 33,188; ansic: 2,724; makefile: 329; yacc: 180; sh: 157; python: 45; lex: 38; lisp: 19
file content (19 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
\cdbalgorithm{amnesia}{}

Forget the history of the indicated expression, that is, remove all
previous forms of the expression from memory. 
\begin{screen}{1,2,4,5}
A (B + C);
@distribute!(%);
A B + A C;
@amnesia(%);
@pop(%);
@pop: not applicable.
\end{screen}
This is mainly useful to purge extremely long intermediate expressions
from memory, while still retaining the option to use the expression
history for other expressions (instead of switching expression
histories off altogether with \subsprop{KeepHistory}).

\cdbseealgo{pop}
\cdbseeprop{KeepHistory}