Skip to main content
Version: 0.0.5

Variables

In vapour you need to declare your variables before you can use them There are two ways to declare variables.

Let

Mutable variables are declared with the let keyword.

let x: int = 1

Mutable variables can be declared without assigning a value to them.

let x: int # no value assigned
x = 1

Const

Immutable variables are declared with the const keyword.

info

Note that there are no constants in R (perhaps with lockBinding), this is only checked in Vapour.

const x: int = 1