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

"Foreach with indices" is broken with Range #759

Closed
nddrylliog opened this issue Jan 3, 2014 · 0 comments
Closed

"Foreach with indices" is broken with Range #759

nddrylliog opened this issue Jan 3, 2014 · 0 comments
Assignees
Milestone

Comments

@nddrylliog
Copy link
Member

@nddrylliog nddrylliog commented Jan 3, 2014

Example:

for ((index, element) in 0..10) {
    "list[%d] = %s" printfln(index, element toString())
}

Prints

list[-1] = 0
list[-1] = 1
(etc.)

Instead of:

list[0] = 0
list[1] = 1
(etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants