Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. SetAttributes[saveinputs, HoldAll];
  2. inputs = {};
  3. saveinputs[new_] := (inputs = {inputs, HoldForm[new]}; new);
  4. $Pre = saveinputs;
  5.  
  6. {a,b,Flatten[inputs]}
  7.  
  8. SetAttributes[$Pre, HoldAll];
  9. inputs = {};
  10. $Pre[new_] := (inputs = {inputs, HoldForm[new]}; new);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement