EnumExtras.chunk_by_pairwise

You're seeing just the function chunk_by_pairwise, go back to EnumExtras module for more information.
Link to this function

chunk_by_pairwise(values, comparator)

View Source

Specs

chunk_by_pairwise(t(), (element(), element() -> boolean())) :: t()

Partitions the elements of the enumerable according to the pairwise comparator.

Examples

iex> EnumExtras.chunk_by_pairwise([1, 2, 3, 4, 1, 2, 3, 1, 2, 1], fn a, b -> a <= b end)
[[1, 2, 3, 4], [1, 2, 3], [1, 2], [1]]