any →
coerce(
    ...specifications: type | mapping
) → any

Coerces a scalar value or selected tuple and record values to requested Expressif types.

Parameters

Name Type Required Description
specifications type | mapping Variadic (one or more) One or more positional type descriptors or selector-to-type mappings.

Examples

"42" | coerce(:integer)  42

Kind: Function
Scope: special
Aliases: special-to-coerce


This site uses Just the Docs, a documentation theme for Jekyll.