View Source Enumx (Enumx v0.5.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.
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
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 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.