Algae v1.1.0 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

Functions

Default Elixir.Algae.Id struct

Wrap some data in an Algae.Id wrapper

Link to this section Types

Link to this type t() View Source
t() :: %Algae.Id{id: any}

Link to this section Functions

Default Elixir.Algae.Id struct

Link to this function new(field) View Source
new(any) :: t
new(any) :: t

Wrap some data in an Algae.Id wrapper

Examples

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