View Source Enumx (Enumx v0.7.0)
Summary
Functions
Returns true
if all elements in enumerable
are equal.
Similar to filter/2, but returns the value of the function invocation instead of the element itself
Returns the single unique element if all elements in enumerable are equal; otherwise, raises an error.
Returns tuples of each element, its index, and the total length of the enumerable.
Returns each element and the result of a function taking the element. A static value can also be added to each element.
Functions
Returns true
if all elements in enumerable
are equal.
Similar to filter/2, but returns the value of the function invocation instead of the element itself
shift_first_match_left(enum, element_to_shift, compare_fn \\ &(&1 == &2))
View Sourceshift_first_match_left!(enum, element_to_shift, compare_fn \\ &(&1 == &2))
View Sourceshift_first_match_right(enum, element_to_shift, compare_fn \\ &(&1 == &2))
View Sourceshift_first_match_right!(enum, element_to_shift, compare_fn \\ &(&1 == &2))
View SourceReturns the single unique element if all elements in enumerable are equal; otherwise, raises an error.
Returns tuples of each element, its index, and the total length of the enumerable.
Returns each element and the result of a function taking the element. A static value can also be added to each element.