View Source Rollex.Utilities (Rollex v0.8.0)

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

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

Link to this section Functions

Link to this macro

is_arithmetic_total?(key)

View Source (macro)
@spec 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