
Scheme
文章平均质量分 74
seeleday
这个作者很懒,什么都没留下…
展开
-
《How to Design Programs》HTDP_ChapterI——3
将大问题拆分成小问题3.1 电影院利润问题;; profit : number -> number;; to compute the profit as the difference between revenue and costs;; at some given ticket-price(define (profit ticket-price) ...);; revenue :...原创 2018-06-12 16:13:43 · 253 阅读 · 0 评论 -
How to Design Programs, Second Edition——前言笔记
How to Design Programs 第二版作者 Matthias Felleisen, Robert Bruce Findler, Matthew Flatt, Shriram Krishnamurthihttp://www.ccs.neu.edu/home/matthias/HtDP2e/index.html Preface 序言好的专职的程序设计需要系统性的思考,...原创 2018-06-07 21:49:34 · 1418 阅读 · 0 评论 -
How to Design Programs, Second Edition——Chapter 0.序 (笔记)
(+ 2 2)(* 3 3)(- 4 2)(/ 6 2)字符串> "hello world""hello world"字符串合并> (string-append "hello" "world")"helloworld"> (string-append "hello " "world")"hello wo原创 2018-06-07 21:55:46 · 510 阅读 · 0 评论 -
How to Design Programs, Second Edition——Chapter 1 Fixed-Size Data 固定尺寸数据
Exercise 1. Add the following definitions for x and y to DrRacket’s definitions area:(define x 3)(define y 4)Now imagine that x and y are the coordinates of a Cartesian point. Write down an expressi...原创 2018-06-08 17:10:21 · 1797 阅读 · 0 评论