Algae.Id (Algae v1.3.1) View Source

The simplest ADT: a simple wrapper for some data

Examples

iex> %Algae.Id{id: "hi!"}
%Algae.Id{id: "hi!"}

Link to this section Summary

Functions

Default Elixir.Algae.Id struct

Wrap some data in an Algae.Id wrapper

Link to this section Types

Specs

t() :: %Algae.Id{id: any()}

Link to this section Functions

Specs

new() :: t()

Default Elixir.Algae.Id struct

Specs

new(any()) :: t()
new(any()) :: t()

Wrap some data in an Algae.Id wrapper

Examples

iex> new(42)
%Algae.Id{id: 42}