top of page

Types

Beaver has the following built-in types

  • int

  • float

  • bool

  • char
  • string

  • list

  • tuple

  • Num (int or float)

  • ? (null)

​

Any structs and classes you define will be treated as types as well.

To create type synonyms use the type keyword

> type Ints [int]

> union Num (int, float)

bottom of page