Islands Client Island Type v0.1.4 Islands.Client.IslandType View Source
Converts island codes to island types in the Game of Islands.
Inspired by the course Elixir for Programmers by Dave Thomas.
Link to this section Summary
Functions
Converts an island code to an island type.
Link to this section Functions
Link to this function
new(island_type_code)
View Sourcenew(String.codepoint()) :: Islands.Island.type() | {:error, atom()}
Converts an island code to an island type.
Examples
iex> alias Islands.Client.IslandType
iex> IslandType.new("a")
:atoll