Created
December 18, 2016 02:28
-
-
Save zhouqiang-cl/6891e698e1f8e83bdf3ac777c0e53705 to your computer and use it in GitHub Desktop.
common lisp 的函数 STRING
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 语法 | |
| 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