View Source Algae.Id (Algae v1.3.2-doma)

The simplest ADT: a simple wrapper for some data

examples

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

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

Link to this section Functions

@spec new() :: t()

Default Elixir.Algae.Id struct

@spec new(any()) :: t()
@spec new(any()) :: t()

Wrap some data in an Algae.Id wrapper

examples

Examples

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