Version: 5.1.3
4 Utilities
Typed Racket provides some additional utility functions to facilitate typed programming.
Verifies that the argument satisfies the constraint. If no predicate
is provided, simply checks that the value is not
#f.
Examples: | ||||||||||||||||
|
(with-asserts ([id maybe-pred] ...) body ...+) | |||||||||||
|
Guard the body with assertions. If any of the assertions fail, the
program errors. These assertions behave like assert.
A predicate for the Index
type.