Tracks
/
Gleam
Gleam
/
Syllabus
/
External Types
Ex

External Types in Gleam

1 exercise

About External Types

External types can be used to refer to data types defined in other languages, such as Erlang or JavaScript.

To define an external function declare a type but do not provide any constructors. This can then be used in the same way as any other type.

pub type OrderedDictionary(element)
Edit via GitHub The link opens in a new window or tab

Learn External Types