Skip to contents

Identity on numeric/complex input; the literal is its own EML expression. Provided for symmetry with eml_var() and eml_node().

Usage

eml_const(value = 1)

Arguments

value

length-1 numeric or complex.

Value

The same value (no wrapping).

See also

Other eml_constructors: as_eml_expr(), eml_node(), eml_var()

Examples

eml_const(1)
#> [1] 1
eml_const(0 + 1i)
#> [1] 0+1i