Created
December 7, 2016 16:32
-
-
Save zhouqiang-cl/38524f661cca9d3a0020fd50c5d9849b to your computer and use it in GitHub Desktop.
common lisp 的函数 WRITE-SEQUENCE
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
语法 | |
write-sequence sequence stream &key start end => sequence | |
参数和值 | |
sequence --- 一个 sequence | |
stream --- 一个 output stream | |
start, end --- 位置指示符,start 默认为0, end 默认为 nil | |
描述 | |
write-sequence 将 sequence 从start到end的字句中的元素写出到 stream中 | |
代码 | |
* (write-sequence "bookworms" *standard-output* :end 4) | |
book | |
"bookworms" | |
返回中的book 是写出到 *standard-output* 中的, "bookworms" 是 write-sequence 的返回 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment