blob: 6f0332b41e43dae3cd2c6763a99653fc6423da14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
<HTML>
<HEAD>
<TITLE>Simply Scheme: Table of Scheme Primitives by Category</TITLE>
</HEAD>
<BODY>
<CITE>Simply Scheme</CITE>:
<CITE>Introducing Computer Science</CITE> 2/e Copyright (C) 1999 MIT
<H1>Table of Scheme Primitives by Category</H1>
<TABLE width="100%"><TR><TD>
<IMG SRC="../simply.jpg" ALT="cover photo">
<TD><TABLE>
<TR><TD align="right"><CITE><A HREF="http://www.cs.berkeley.edu/~bh/">Brian
Harvey</A><BR>University of California, Berkeley</CITE>
<TR><TD align="right"><CITE><A HREF="http://ccrma.stanford.edu/~matt">Matthew
Wright</A><BR>University of California, Santa Barbara</CITE>
<TR><TD align="right"><BR>
<TR><TD align="right"><A HREF="../pdf/ssch27.pdf">Download PDF version</A>
<TR><TD align="right"><A HREF="../ss-toc2.html">Back to Table of Contents</A>
<TR><TD align="right"><A HREF="https://people.eecs.berkeley.edu/~bh/ssch26/appuindex.html"><STRONG>BACK</STRONG></A>
chapter thread [no next]
<TR><TD align="right"><A HREF="http://mitpress.mit.edu/0262082810">MIT
Press web page for <CITE>Simply Scheme</CITE></A>
</TABLE></TABLE>
<HR>
<P>Use this table if you've forgotten the name of a primitive. Then
look in the index to find more about how to use the primitive.
<P><SUP>*</SUP> Not part of standard Scheme
<H2>Words and Sentences</H2>
<P><CODE>appearances</CODE><SUP>*</SUP><CODE>
<BR>before?</CODE><SUP>*</SUP><CODE>
<BR>butfirst (bf)</CODE><SUP>*</SUP><CODE>
<BR>butlast (bl)</CODE><SUP>*</SUP><CODE>
<BR>count</CODE><SUP>*</SUP><CODE>
<BR>empty?</CODE><SUP>*</SUP><CODE>
<BR>equal?</CODE><SUP>*</SUP><CODE>
<BR>first</CODE><SUP>*</SUP><CODE>
<BR>item</CODE><SUP>*</SUP><CODE>
<BR>last</CODE><SUP>*</SUP><CODE>
<BR>member?</CODE><SUP>*</SUP><CODE>
<BR>quote
<BR>sentence (se)</CODE><SUP>*</SUP><CODE>
<BR>sentence?</CODE><SUP>*</SUP><CODE>
<BR>word</CODE><SUP>*</SUP><CODE>
<BR>word?</CODE><SUP>*</SUP>
</CODE><H2>Lists</H2>
<P><CODE>append
<BR>assoc
<BR>car
<BR>cdr
<BR>c...r
<BR>cons
<BR>filter</CODE><SUP>*</SUP><CODE>
<BR>for-each
<BR>length
<BR>list
<BR>list?
<BR>list-ref
<BR>map
<BR>member
<BR>null?
<BR>reduce</CODE><SUP>*</SUP>
<H2>Trees</H2>
<P><CODE>children</CODE><SUP>*</SUP><CODE>
<BR>datum</CODE><SUP>*</SUP><CODE>
<BR>make-node</CODE><SUP>*</SUP>
<H2>Arithmetic</H2>
<P><CODE>+</CODE>, <CODE>-</CODE>, <CODE>*</CODE>, <CODE>/</CODE>
<BR><CODE><</CODE>, <CODE><=</CODE>, <CODE>=</CODE>, <CODE>></CODE>, <CODE>>=</CODE>
<BR><CODE>abs
<BR>ceiling
<BR>cos
<BR>even?
<BR>expt
<BR>floor
<BR>integer?
<BR>log
<BR>max
<BR>min
<BR>number?
<BR>odd?
<BR>quotient
<BR>random
<BR>remainder
<BR>round
<BR>sin
<BR>sqrt
</CODE><H2>True and False</H2>
<P><CODE>and
<BR>boolean?
<BR>cond
<BR>if
<BR>not
<BR>or
</CODE><H2>Variables</H2>
<P><CODE>define
<BR>let
</CODE><H2>Vectors</H2>
<P><CODE>list->vector
<BR>make-vector
<BR>vector
<BR>vector?
<BR>vector-length
<BR>vector->list
<BR>vector-ref
<BR>vector-set!
</CODE><H2>Procedures</H2>
<P><CODE>apply
<BR>lambda
<BR>procedure?
</CODE><H2>Higher-OrderProcedures</H2>
<P><CODE>accumulate</CODE><SUP>*</SUP><CODE>
<BR>every</CODE><SUP>*</SUP><CODE>
<BR>filter</CODE><SUP>*</SUP><CODE>
<BR>for-each
<BR>keep</CODE><SUP>*</SUP><CODE>
<BR>map
<BR>reduce</CODE><SUP>*</SUP><CODE>
<BR>repeated</CODE><SUP>*</SUP>
<H2>Control</H2>
<P><CODE>begin
<BR>error
<BR>load
<BR>trace
<BR>untrace
</CODE><H2>Input/Output</H2>
<P><CODE>align</CODE><SUP>*</SUP><CODE>
<BR>display
<BR>newline
<BR>read
<BR>read-line</CODE><SUP>*</SUP><CODE>
<BR>read-string</CODE><SUP>*</SUP><CODE>
<BR>show</CODE><SUP>*</SUP><CODE>
<BR>show-line</CODE><SUP>*</SUP><CODE>
<BR>write
</CODE><H2>Files and Ports</H2>
<P><CODE>close-all-ports</CODE><SUP>*</SUP><CODE>
<BR>close-input-port
<BR>close-output-port
<BR>eof-object?
<BR>open-input-file
<BR>open-output-file
<P>
<P><SUP>*</SUP> Not part of standard Scheme
<HR>
<P><A HREF="../ss-toc2.html">(back to Table of Contents)</A><P>
<A HREF="appindex.html"><STRONG>BACK</STRONG></A>
chapter thread [no next]
<P>
<ADDRESS>
<A HREF="../index.html">Brian Harvey</A>,
<CODE>bh@cs.berkeley.edu</CODE>
</ADDRESS>
</BODY>
</HTML>
|