gleam/erlang/reference

Types

A unique reference value.

It holds no particular meaning or value, but unique values are often useful in programs are used heavily within both Gleam and Erlang’s OTP frameworks.

More can be read about references in the Erlang documentation.

pub type Reference

Values

pub fn new() -> Reference

Create a new unique reference.

Search Document