Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 13, 2016 03:53
Show Gist options
  • Select an option

  • Save zhouqiang-cl/d055439aa3cb2eaaa833e50a2355404a to your computer and use it in GitHub Desktop.

Select an option

Save zhouqiang-cl/d055439aa3cb2eaaa833e50a2355404a to your computer and use it in GitHub Desktop.
common lisp 的函数 BOUNDP
语法
boundp symbol => generalized-boolean
参数和值
symbol --- 一个 symbol
generalized-boolean --- 一个 generalized-boolean
描述
如果 symbol 被绑定了, 返回 true, 否则返回 false
代码
* (setq x 1)
1
* (boundp 'x)
T
* (makunbound 'x)
X
* (boundp 'x)
NIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment