View Source Rollex.Utilities (Rollex v0.7.1)

Link to this section Summary

Functions

Merges two sets of dice roll results into one

Conveniently parses a float from a string known to contain a number, with rounding

Conveniently parses an integer from a string known to contain a number

Link to this section Types

Specs

merge_operation() ::
  (operation :: atom(), left :: number(), right :: number() -> number())

Link to this section Functions

Specs

merge(left :: map(), right :: map(), merge_operation()) :: map()

Merges two sets of dice roll results into one

Link to this function

simple_float_parse(input)

View Source

Conveniently parses a float from a string known to contain a number, with rounding

Link to this function

simple_integer_parse(input)

View Source

Conveniently parses an integer from a string known to contain a number