Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Looping over arrays #697

Open
MovingtoMars opened this issue Feb 12, 2016 · 3 comments
Open

Looping over arrays #697

MovingtoMars opened this issue Feb 12, 2016 · 3 comments

Comments

@MovingtoMars
Copy link
Member

arr := []int{1, 2, 3, 4}
for (index, value) in arr {

}
@kiljacken
Copy link
Member

IMO we should probably use a keyword like in instead of reusing :=, but otherwise lgtm

@MovingtoMars
Copy link
Member Author

oh, that's what I meant

@felixangell
Copy link
Member

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants