We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Enum.with_index/2
1 parent bb902bc commit 2d1f280Copy full SHA for 2d1f280
lib/elixir/lib/enum.ex
@@ -3921,12 +3921,10 @@ defmodule Enum do
3921
Returns the `enumerable` with each element wrapped in a tuple
3922
alongside its index or according to a given function.
3923
3924
- May receive a function or an integer offset.
3925
-
3926
- If an `offset` is given, it will index from the given offset instead of from
+ If an `offset` integer is given, it will index from the given offset instead of from
3927
zero.
3928
3929
- If a `function` is given, it will index by invoking the function for each
+ If an `offset` function is given, it will index by invoking the function for each
3930
element and index (zero-based) of the enumerable.
3931
3932
## Examples
0 commit comments