Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 3, 2016 03:27
Show Gist options
  • Save zhouqiang-cl/79b3a249bcb0524d44ff3feffae0c86a to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/79b3a249bcb0524d44ff3feffae0c86a to your computer and use it in GitHub Desktop.
common lisp 的函数 FILL
语法
fill sequence item &key start end => sequence
参数和值
sequence --- 一个属性序列
item --- 一个序列
start, end --- 序列范围指示符, 默认 start 为0, end 为 nil
描述
用 item 替换掉从 start 到 end 的元素
代码
* (fill (list 0 1 2 3 4 5) '(444))
((444) (444) (444) (444) (444) (444))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment