the declares the type of an expression.
Syntax
(the ⟨type⟩ ⟨expr⟩)
Semantics
theis the standard way to resolve ambiguity in an expression.- It is especially useful around numeric literals, collection builders, sequence builders, and conversions.
- Unlike
declare,theworks directly at expression sites.
Example
(the (List F32) [1 2 3 4])