We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Enum.with_index/2
1 parent e95c527 commit 5edb6e9Copy full SHA for 5edb6e9
lib/elixir/lib/enum.ex
@@ -3926,7 +3926,7 @@ defmodule Enum do
3926
3927
If a 2-arity function is given as `fun_or_offset`, the function will be invoked
3928
for each element in `enumerable` as the first argument and with a zero-based
3929
- index as the second. The result of the invocation will be listed.
+ index as the second. `with_index/2` returns a list with the result of each invocation.
3930
3931
## Examples
3932
0 commit comments