Algae v0.12.2 Algae.Id View Source

The simplest ADT: a simple wrapper for some data

Examples

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

Link to this section Summary

Functions

A value wrapped in an Id struct

An alias for id

Link to this section Types

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

Link to this section Functions

A value wrapped in an Id struct.

Examples

iex> id("Bourne")
%Algae.Id{id: "Bourne"}

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

An alias for id.

Examples

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