decl | R Documentation |
Stops if variable type is wrong.
decl(x, pred)
`x` |
Variable to be type-checked |
`pred` |
A type checking predicate, such as
|
decl
is a simple, fast type checker,
which is nice when speed matters,
such as in low-level functions.
decl
returns its first argument,
but halts on type errors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.