/  106
 
Teach Yourself Scheme in Fixnum Days
c
Dorai Sitaram, 1998–2003All Rights Reserved
ds26
at 
gte.com
ContentsPreface, 31 Enter Scheme, 42 Data types, 6
2.1 Simple data types, 72.1.1 Booleans, 72.1.2 Numbers, 72.1.3 Characters, 82.1.4 Symbols, 92.2 Compound data types, 102.2.1 Strings, 102.2.2 Vectors, 112.2.3 Dotted pairs and lists, 112.2.4 Conversions between data types, 132.3 Other data types, 142.4 S-expressions, 14
3 Forms, 14
3.1 Procedures, 153.1.1 Procedure parameters, 163.1.2 Variable number of arguments, 163.2
apply
, 163.3 Sequencing, 16
4 Conditionals, 17
4.1
when
and
unless
, 184.2
cond
, 194.3
case
, 194.4
and
and
or
, 19
5 Lexical variables, 20
5.1
let
and
let*
, 225.2
fluid-let
, 23
6 Recursion, 24
6.1
letrec
, 256.2 Named
let
, 266.3 Iteration, 266.4 Mapping a procedure across a list, 27
7 I/O, 27
7.1 Reading, 287.2 Writing, 287.3 File ports, 287.3.1 Automatic opening and closing of file ports, 297.4 String ports, 297.5 Loading files, 301
 
8 Macros, 30
8.1 Specifying the expansion as a template, 328.2 Avoiding variable capture inside macros, 338.3
fluid-let
, 34
9 Structures, 35
9.1 Default initializations, 369.2
defstruct
defined, 37
10 Alists and tables, 3811 System interface, 40
11.1 Checking for and deleting files, 4111.2 Calling operating-system commands, 4111.3 Environment variables, 41
12 Objects and classes, 42
12.1 A simple object system, 4312.2 Classes are instances too, 4712.3 Multiple inheritance, 48
13 Jumps, 49
13.1
call-with-current-continuation
, 5013.2 Escaping continuations, 5113.3 Tree matching, 5213.4 Coroutines, 5313.4.1 Tree-matching with coroutines, 54
14 Nondeterminism, 55
14.1 Description of 
amb
, 5614.2 Implementing
amb
in Scheme, 5714.3 Using
amb
in Scheme, 5814.4 Logic puzzles, 5914.4.1 The Kalotan puzzle, 6014.4.2 Map coloring, 61
15 Engines, 63
15.1 The clock, 6415.2 Flat engines, 6515.3 Nestable engines, 66
16 Shell scripts, 68
16.1 Hello, World!, again, 6916.2 Scripts with arguments, 7016.3 Example, 71
17 CGI scripts, 72
17.1 Example: Displaying environment variables, 7317.2 Example: Displaying selected environment variable, 7517.3 CGI script utilities, 7717.4 A calculator via CGI, 80
A Scheme dialects, 82
A.1 Invocation and init files, 83A.2 Shell scripts, 84A.3
define-macro
, 84A.4
load-relative
, 85
B DOS batch files in Scheme, 86
2
 
C Numerical techniques, 88
C.1 Simpson’s rule, 89C.2 Adaptive interval sizes, 91C.3 Improper integrals, 93
D A clock for infinity, 95E References, 98F Index, 100
3

Share & Embed

More from this user

Add a Comment

Characters: ...