Annex v0.2.1 Annex.Utils View Source

This module holds functions that are not necessarily specific to one of Annex's other modules.

Link to this section Summary

Functions

Generates a float between -1.0 and 1.0

A strict zip function in which the two given enumerables must be the same size.

A strict zip-while-mapping function in which the two given enumerables must be the same size.

Link to this section Functions

Link to this macro

is_pos_integer(x) View Source (macro)

Link to this function

random_float() View Source
random_float() :: float()

Generates a float between -1.0 and 1.0

Link to this macro

validate(field, reason, list) View Source (macro)

Link to this function

zip(a, b) View Source
zip([any()], [any()]) :: [{any(), any()}]

A strict zip function in which the two given enumerables must be the same size.

Link to this function

zipmap(list1, list2, func) View Source
zipmap([any()], [any()], any()) :: [any()]

A strict zip-while-mapping function in which the two given enumerables must be the same size.