{"size": 884, "ext": "scrbl", "max_stars_repo_path": "unstable-doc/scribblings/struct.scrbl", "max_stars_repo_name": "racket/unstable", "max_stars_repo_stars_event_min_datetime": "2018-08-24T22:01:32.000Z", "max_stars_repo_stars_event_max_datetime": "2018-08-24T22:01:32.000Z", "max_issues_repo_path": "unstable-doc/scribblings/struct.scrbl", "max_issues_repo_name": "racket/unstable", "max_issues_repo_issues_event_min_datetime": "2020-06-25T14:58:07.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-25T19:01:25.000Z", "max_forks_repo_path": "unstable-doc/scribblings/struct.scrbl", "max_forks_repo_name": "racket/unstable", "max_forks_repo_forks_event_min_datetime": "2015-01-20T15:40:24.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-24T22:01:34.000Z"}
{"max_stars_count": 1, "max_issues_count": 2, "max_forks_count": 4, "avg_line_length": 26.7878787879, "max_line_length": 77, "alphanum_fraction": 0.7319004525}
#lang scribble/manual
@(require scribble/eval "utils.rkt"
          (for-label racket/base unstable/struct racket/contract))

@(define the-eval (make-base-eval))
@(the-eval '(require unstable/struct))

@title[#:tag "struct"]{Structs}

@deprecated[@racketmodname[racket/struct]]{
The contents of this module, with the exceptions below, have been merged with
@racketmodname[racket/struct].
}

@defmodule[unstable/struct]

@defform[(make struct-id expr ...)]{

Creates an instance of @racket[struct-id], which must be bound as a
struct name. The number of @racket[expr]s is statically checked
against the number of fields associated with @racket[struct-id]. If
they are different, or if the number of fields is not known, an error
is raised at compile time.

@examples[#:eval the-eval
  (define-struct triple (a b c))
  (make triple 3 4 5)
  (make triple 2 4)
]
}

@close-eval[the-eval]
