_(underscore) in for loop

“_” is convenient to use only value from slice( or map). Let me check the behavior of it.


Here is an easy sample code.

Let me check the result of this code.


--------
indexWithValue
--------
0 10
1 20
2 30
3 40
4 50
5 60
6 70
7 80
8 90
--------
indexOnly
--------
0
1
2
3
4
5
6
7
8
--------
valueOnly
--------
10
20
30
40
50
60
70
80
90
--------
noValue
--------
foo
foo
foo
foo
foo
foo
foo
foo
foo
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.