Skip to content

Data Types

Andrew Johnson edited this page Nov 13, 2024 · 4 revisions

Custom data types are important in LSTS programming.

Records

Records can be declared with typed fields.

type A { a: U64, b: I64 };

Tagged Unions

Unions can be declared with the bar | syntax to separate record cases.

type A { a: U64, b: I64 } | B { c: F64 };
Clone this wiki locally