Algae v0.12.1 Algae.Id

The simplest ADT: a simple wrapper for some data

Examples

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

Summary

Functions

A value wrapped in an Id struct

An alias for id

Types

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

Functions

id(value)

Specs

id(any) :: Algae.Id.t

A value wrapped in an Id struct.

Examples

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

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

Specs

new(any) :: Algae.Id.t

An alias for id.

Examples

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