书栈网 · BookStack 本次搜索耗时 0.015 秒,为您找到 930 个相关结果.
  • List-Manipulation Functions

    List-Manipulation Functions List-Manipulation Functions With that background out of the way, you’re ready to look at the library of functions Common Lisp provides for manipulat...
  • Credits

    784 2020-12-10 《Build your own Lisp》
    Credits • Build Your Own Lisp Special Thanks Beta Readers Image Credits Navigation Credits • Build Your Own Lisp Special Thanks Special thanks to my friends and family f...
  • Other Structures

    Other Structures Other Structures While cons cells and lists are typically considered to be synonymous, that’s not quite right—as I mentioned earlier, you can use lists of list...
  • 8.5 多重包 (Multiple Packages)

    8.5 多重包 (Multiple Packages) 8.5 多重包 (Multiple Packages) 大的程序通常切分为多个包。如果程序的每个部分都是一个包,那么开发程序另一个部分的某个人,将可以使用符号来作为函数名或变量名,而不必担心名字在别的地方已经被用过了。 在没有提供定义多个命名空间的语言里,工作于大项目的程序员,通常需要想出某些...
  • 3.5 示例:压缩 (Example: Compression)

    3.5 示例:压缩 (Example: Compression) 3.5 示例:压缩 (Example: Compression) 作为一个例子,这节将演示如何实现简单形式的列表压缩。这个算法有一个令人印象深刻的名字,游程编码(run-length encoding)。 ( defun compress ( x ) ( if ( c...
  • 13. Beyond Lists: Other Uses for Cons Cells

    13. Beyond Lists: Other Uses for Cons Cells Copyright © 2003-2005, Peter Seibel 13. Beyond Lists: Other Uses for Cons Cells As you saw in the previous chapter, the list dat...
  • 第十四章:进阶议题

    第十四章:进阶议题 第十四章:进阶议题 本章是选择性阅读的。本章描述了 Common Lisp 里一些更深奥的特性。Common Lisp 像是一个冰山:大部分的功能对于那些永远不需要他们的多数用户是看不见的。你或许永远不需要自己定义包 (Package)或读取宏 (read-macros),但当你需要时,有些例子可以让你参考是很有用的。
  • Hash Table Iteration

    Hash Table Iteration Hash Table Iteration Common Lisp provides a couple ways to iterate over the entries in a hash table. The simplest of these is via the function **MAPHASH** ...
  • SREM

    SREM key member [member …] 返回值 代码示例 SREM key member [member …] 可用版本: >= 1.0.0 时间复杂度: O(N), N 为给定 member 元素的数量。 移除集合 key 中的一个或多个 member 元素,不存在的 member 元素会被忽略。 当 key...
  • 5. Functions

    5. Functions Copyright © 2003-2005, Peter Seibel 5. Functions After the rules of syntax and semantics, the three most basic components of all Lisp programs are functions, v...