View Source Enumx (Enumx v0.5.0)

Summary

Functions

Returns true if all elements in enumerable are equal.

Link to this function

do_swap(enum, arg2, arg3)

View Source

Similar to filter/2, but returns the value of the function invocation instead of the element itself

Link to this macro

is_plain_map(term)

View Source (macro)
Link to this function

shift_first_match_left(enum, element_to_shift, compare_fn \\ &(&1 == &2))

View Source
Link to this function

shift_first_match_left!(enum, element_to_shift, compare_fn \\ &(&1 == &2))

View Source
Link to this function

shift_first_match_right(enum, element_to_shift, compare_fn \\ &(&1 == &2))

View Source
Link to this function

shift_first_match_right!(enum, element_to_shift, compare_fn \\ &(&1 == &2))

View Source
Link to this function

shift_left_by_index(enum, index)

View Source
Link to this function

shift_left_by_index!(enum, index)

View Source
Link to this function

shift_right_by_index(enum, index)

View Source
Link to this function

shift_right_by_index!(enum, index)

View Source

Returns the single unique element if all elements in enumerable are equal; otherwise, raises an error.

Link to this function

with_index_length(enum, fun_or_offset \\ 0)

View Source

Returns tuples of each element, its index, and the total length of the enumerable.