{"size": 945, "ext": "scrbl", "max_stars_repo_path": "doc/misc.scrbl", "max_stars_repo_name": "cjfuller/col", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "doc/misc.scrbl", "max_issues_repo_name": "cjfuller/col", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "doc/misc.scrbl", "max_forks_repo_name": "cjfuller/col", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.53125, "max_line_length": 86, "alphanum_fraction": 0.7312169312}
#lang scribble/manual

@title[#:tag "misc"]{Miscellaneous}

Package @code{col.misc}

@defproc[#:kind "macro" (nthval [values-returning t] [n integer]) t]{
Get the nth value (0-indexed) of a form returning multiple values.

Note that the arguments are in reverse order from @code{nth} for lists, so that
this can be used in the threading macro.
}

@defproc[#:kind "macro" (nthvals [values-returning t] [nlist (listof integer)]) list]{
Get the values at the supplied positions of a form returning multiple values.

Note that the arguments are in reverse order from @code{nth} for lists, so that
this can be used in the threading macro.
}


@defproc[#:kind "macro" (:= [var symbol] [val t] [body t] ...) t]{
Extremely gratuitous shorthand for let with a single binding:
@codeblock{
(let ((var val))
  body ...)
}

This occasionally improves readability.  Will be deprecated or renamed in a
future release to avoid confusion because of the colon.
}
