Skip to content

Data types

Basic types

The Luego Language supports the following basic data types.

  • Text: 'this is a text', '123', ''
  • Integer: 42
  • BigInteger
  • Number (double-precision floating-point numbers): 42.0
  • BigDecimal
  • Boolean: true, false
  • Date: Date(2024, 5, 5)
  • DateTime: Date(2024, 5, 5, 12, 0, 0)

Collections

Tuples

('age', 42)

Option

None, Some(42)

List

['this', 'is', 'a', 'list', 'of', 'text', 'values']
[] // an empty list