Functions As Data, a.k.a. Higher-Order Functions Functions As Data, a.k.a. Higher-Order Functions While the main way you use functions is to call them by name, a number of situ...
Libraries Libraries String • How long is it. Our Lisp is finally functional. We should be able to write almost any functions we want. We can build some quite complex constr...
Constants(常量) Constants(常量) One other kind of variable I haven’t mentioned at all is the oxymoronic “constant variable.” All constants are global and are defined with DEFCONSTA...
第十六章:示例:生成 HTML 第十六章:示例:生成 HTML 本章的目标是完成一个简单的 HTML 生成器 —— 这个程序可以自动生成一系列包含超文本链接的网页。除了介绍特定 Lisp 技术之外,本章还是一个典型的自底向上编程(bottom-up programming)的例子。 我们以一些通用 HTML 实用函数作为开始,继而将这些例程看作是一门...
Functions As Data, a.k.a. Higher-Order Functions(作为数据的函数——高阶函数) Functions As Data, a.k.a. Higher-Order Functions(作为数据的函数——高阶函数) While the main way you use functions is to call ...