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

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.