Rollex.Utilities (Rollex v0.12.0)

View Source

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

merge_operation()

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

Functions

is_arithmetic_total?(key)

(macro)

merge(h, h, merge_op)

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

Merges two sets of dice roll results into one

simple_float_parse(input)

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

simple_integer_parse(input)

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