SyntaxFix
Write A Post
Hire A Developer
Questions
No, there is not.
As other people have shown, there are ways to simulate Ruby's behavior. But it is possible to have a type that implements IEnumerable that does not expose an index.