Algae v1.2.3 Algae.Id 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
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Algae.Id{id: any()}
t() :: %Algae.Id{id: any()}
Link to this section Functions
Link to this function
new()
View Source
new()
View Source
new() :: t()
new() :: t()
Default Elixir.Algae.Id struct
Link to this function
new(field) View Source
Wrap some data in an Algae.Id
wrapper
Examples
iex> new(42)
%Algae.Id{id: 42}