Skip to content

Commit 2dceee1

Browse files
committed
posn for foo.
1 parent 8bb325b commit 2dceee1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

www/notes/neerdowell.scrbl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ Each structure definition creates four kinds of things:
6060

6161
@itemlist[
6262

63-
@item{A constructor, e.g. @racket[foo].}
63+
@item{A constructor, e.g. @racket[posn].}
6464

65-
@item{A predicate, e.g. @racket[foo?].}
65+
@item{A predicate, e.g. @racket[posn?].}
6666

67-
@item{A set of accessor functions, e.g. @racket[foo-x] and @racket[foo-y].}
67+
@item{A set of accessor functions, e.g. @racket[posn-x] and @racket[posn-y].}
6868

69-
@item{A pattern constructor, e.g. @racket[foo].}
69+
@item{A pattern constructor, e.g. @racket[posn].}
7070
]
7171

7272
The constructor is a function that takes as many arguments as fields
@@ -104,7 +104,7 @@ Here the @tt{Symbol} argument represents the name of the structure
104104
type. So for example, to create an instance of the @racket[posn]
105105
structure type, you'd call @racket[(make-struct 'posn 1 2)]. To check
106106
if @racket[_x] is an instance of a @racket[posn] structure, you'd call
107-
@racket[(struct? 'foo _x)]. To access the first field of an instance
107+
@racket[(struct? 'posn _x)]. To access the first field of an instance
108108
of a @racket[posn] structure type @racket[_x], you'd call @racket[(struct-ref
109109
'posn 0 _x)].
110110

@@ -158,7 +158,7 @@ and @racket['struct-ref] as keywords. If you write a program that
158158
uses these names, they will be treated as variables, not primitives:
159159

160160
@ex[
161-
(parse-e '(struct? 'foo x))
161+
(parse-e '(struct? 'posn x))
162162
]
163163

164164
The @racket[parse-struct] function is defined as follows:

0 commit comments

Comments
 (0)