2.14 函数作为对象 (Functions as Objects) 2.14 函数作为对象 (Functions as Objects) 函数在 Lisp 里,和符号、字符串或列表一样,是稀松平常的对象。如果我们把函数的名字传给 function ,它会返回相关联的对象。和 quote 类似, function 是一个特殊操作符,所以我们无需...
Higher Math(高等数学) Higher Math(高等数学) The functions you’ve seen so far are the beginning of the built-in mathematical functions. Lisp also supports logarithms: LOG ; exponentiati...
Generic Functions and Classes Generic Functions and Classes The fundamental idea of object orientation is that a powerful way to organize a program is to define data types and ...
Breaking Open the Black Box Breaking Open the Black Box Before we look at the specifics of Lisp’s syntax and semantics, it’s worth taking a moment to look at how they’re define...
6.7.4. Specific types of packages 6.7.4. Specific types of packages Several specific types of packages have special sub-policies and corresponding packaging rules and practices...
Numbers, Characters, and Strings(数字、字符和字符串) Numbers, Characters, and Strings(数字、字符和字符串) While functions, variables, macros, and 25 special operators provide the basic building ...
Defining Your Own Packages Defining Your Own Packages Working in COMMON-LISP-USER is fine for experiments at the REPL, but once you start writing actual programs you’ll want t...