Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetAttributes[saveinputs, HoldAll];
- inputs = {};
- saveinputs[new_] := (inputs = {inputs, HoldForm[new]}; new);
- $Pre = saveinputs;
- {a,b,Flatten[inputs]}
- SetAttributes[$Pre, HoldAll];
- inputs = {};
- $Pre[new_] := (inputs = {inputs, HoldForm[new]}; new);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement