Use `define-type' to make docs clearer.
This commit is contained in:
parent
219682bbbe
commit
da3b4ed543
|
@ -94,7 +94,7 @@ to describe an infinite family of data. For example, this is the type
|
||||||
of binary trees of numbers.
|
of binary trees of numbers.
|
||||||
|
|
||||||
@racketblock[
|
@racketblock[
|
||||||
(Rec BT (U Number (Pair BT BT)))]
|
(define-type BinaryTree (Rec BT (U Number (Pair BT BT))))]
|
||||||
|
|
||||||
The @racket[Rec] type constructor specifies that the type @racket[BT]
|
The @racket[Rec] type constructor specifies that the type @racket[BT]
|
||||||
refers to the whole binary tree type within the body of the
|
refers to the whole binary tree type within the body of the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user