Documentation for define-struct:
svn: r11781 original commit: 6d228898ee571979a45e1ac6d35e936ad9a76d4d
This commit is contained in:
parent
43c13e8052
commit
5c5934c98b
|
@ -523,6 +523,10 @@ types. In most cases, use of @scheme[:] is preferred to use of @scheme[define:]
|
|||
(define-struct: (name parent) ([f : t] ...))
|
||||
(define-struct: (v ...) name ([f : t] ...))
|
||||
(define-struct: (v ...) (name parent) ([f : t] ...))]]
|
||||
{Defines a @rtech{structure} with the name @scheme[name], where the fields
|
||||
@scheme[f] have types @scheme[t]. The second and fourth forms define @scheme[name]
|
||||
to be a substructure of @scheme[parent]. The last two forms define structures that
|
||||
are polymorphic in the type variables @scheme[v].}
|
||||
|
||||
@subsection{Type Aliases}
|
||||
@defform*[[(define-type-alias name t)
|
||||
|
|
Loading…
Reference in New Issue
Block a user