Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 18, 2016 02:28
Show Gist options
  • Select an option

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

Select an option

Save zhouqiang-cl/6891e698e1f8e83bdf3ac777c0e53705 to your computer and use it in GitHub Desktop.
common lisp 的函数 STRING
语法
string x => string
参数和值
x --- 一个 string, 或者 symbol 或者 character
string --- 一个 string
描述
如果 x 是一个 string, 则返回其自身
如果 x 是一个 symbol, 则返回他的名字
如果 x 是一个 character, 则返回包含这个字符的字符串
代码
* (string "already a string")
"already a string"
* (string 'elm)
"ELM"
* (string #\c)
"c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment