Lisp

Programmer

博客园 首页 新随笔 联系 订阅 管理

2006年7月3日 #

摘要: 0.A file is either (1) empty, or(2) a line followed by a file. so, when we need computation, first build a data structure, then write a *recurisive*procedure to manuiplate. 1. Randell:do it recursiv... 阅读全文
posted @ 2006-07-03 21:05 fei 阅读(255) 评论(0) 推荐(0) 编辑

摘要: % member member1(X, [X | Y]). member1(X, [_ | B]) :- member(X, B). % append(list1, list2, result) append1([], L2, L2). append1([A | B], L2, [A | C]) :- append(B, L2, C). % revert(L1, L2) revert(List,R... 阅读全文
posted @ 2006-07-03 20:46 fei 阅读(261) 评论(0) 推荐(0) 编辑

摘要: The other images which are commonly found in an Allegro CL installation are: mlisp Modern base Lisp image, international (16-bit characters) alisp ANSI base Lisp image, international (16-bit charact... 阅读全文
posted @ 2006-07-03 17:11 fei 阅读(592) 评论(0) 推荐(0) 编辑

摘要: Roughly speaking, an S-expression is a parenthesized collection of information. The atomic pieces of information are numbers, symbols, and strings. Placing a pair of parentheses around any number of S... 阅读全文
posted @ 2006-07-03 17:07 fei 阅读(314) 评论(0) 推荐(0) 编辑