Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor change in Enum.with/2 docs #13703

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/elixir/lib/enum.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3921,11 +3921,11 @@ defmodule Enum do
Returns the `enumerable` with each element wrapped in a tuple
alongside its index or according to a given function.

If an `offset` integer is given, it will index from the given offset instead of from
zero.
If an integer offset is given as `fun_or_offset`, it will index from the given
offset instead of from zero.

If an `offset` function is given, it will index by invoking the function for each
element and index (zero-based) of the enumerable.
If a function is given as `fun_or_offset`, it will index by invoking the function
for each element and index (zero-based) of the enumerable.

## Examples

Expand Down
Loading