prevent terminal output in LISP
问题 I want to run a function but not have it output the result in the terminal. For example, (set 'A 'B) normally returns B in the console like the following: >>> (set 'A 'B) B >>> A B I don't want it to return anything; I still want the function to do what it's supposed to, just silently: >>> (set 'A 'B) >>> A B 回答1: It's not perfect, but you can use (values) at the end of your expression to suppress output. You get a blank line instead. Common Lisp: (progn (set 'A 'B) (values)) I'm not sure of