在Python中,我们有del删除变量的语句。
del
例如:
a = 1 del a
Lisp中的等效功能是什么?
(setq foo 1) ;; (del foo) ?
在常见的Lisp中。
对于符号作为变量:
CL-USER 7 > (setf foo 42) 42 CL-USER 8 > foo 42 CL-USER 9 > (makunbound 'foo) FOO CL-USER 10 > foo Error: The variable FOO is unbound.
看:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句