EnumExtras.chunk_by_pairwise
You're seeing just the function
chunk_by_pairwise
, go back to EnumExtras module for more information.
Specs
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]]