Add forEachWithIndex to Array

Instead of foo.enumerated() you might want to use:

  1. zip(0..., foo) or
  2. zip(foo.indices, foo)

See also:

1 Like