Defconst v0.1.0 Defconst.Enum.DefaultGenerator View Source

Default implementation of enum generator

Link to this section Summary

Functions

Next value when previous value is binary

Link to this section Functions

Link to this function next_value(constant_name, previous_value) View Source
next_value(atom(), Integer.t()) :: Integer.t()
next_value(atom(), String.t()) :: String.t()

Next value when previous value is binary

## Examples: iex> Defconst.Enum.DefaultGenerator.next_value(:bye, “hello”) “hello1”