Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 7, 2016 16:32
Show Gist options
  • Save zhouqiang-cl/38524f661cca9d3a0020fd50c5d9849b to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/38524f661cca9d3a0020fd50c5d9849b to your computer and use it in GitHub Desktop.
common lisp 的函数 WRITE-SEQUENCE
语法
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