I summarized for loop and for-each loop in Java.
Continue reading Java: For Loop and For-Each LoopTag Archives: loop
Kotlin: Why Break or Continue can’t be used in forEach or repeat, while for and while can use them
In Kotlin while
and for
block, break
and continue
can be used, but they can’t be used in forEach
or repeat
block.
LibreOffice: Loop in Basic
In the case we want edit cell from top to down in LibreOffice Calc, the loop function is useful.
Continue reading LibreOffice: Loop in Basictreefrog: How to Write Loop in Otama HTML Template
CoffeeScript: How to write For Loop
How to write for
loop in CoffeeScript.
for loop of array
In Ruby, it is written as items.each
.
1 2 3 4 |
arr = ['a', 'b', 'c'] for item in arr alert item |
for loop of array with index
In Ruby, it is written as items.each_with_index
.
1 2 3 4 5 |
arr = ['a', 'b', 'c'] for item, index in arr alert index alert item |