View Source Rollex.Utilities (Rollex v0.10.0)

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

Types

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

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