text
text, contextual keyword
The word text
is a contextual keyword of the Envision language. It refers to the primitive data type text
that contains a list of Unicode characters. Text values are capped to 256 characters in Envision.
The primary usage of the keyword text
is within read
statements, but it can also be used within an expect
statement.
Example:
tt = "Hello World!"
expect tt : text
show table "" export: "/sample/onetext.ion" with tt
followed by
read "/sample/onetext.ion" as T with
tt : text
show scalar "" a1b2 with same(T.tt)
text(a: ‘a) 🡒 text, pure function
Returns the canonical text representation for all the primitive data types.
Example:
show summary "" a1a4 with
text(true)
text(123.45)
text(date(2020, 8, 27))
text("Hello World!") // identity
The text()
function is implicitely used when interpolating text value, i.e. \{myValue}
.