Tag Archives: for

Kotlin: Why Break or Continue can’t be used in forEach or repeat, while for and while can use them


Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /home/and-beyond/www/main/wp-includes/class-wp-hook.php on line 286

In Kotlin while and for block, break and continue can be used, but they can’t be used in forEach or repeat block.

Continue reading Kotlin: Why Break or Continue can’t be used in forEach or repeat, while for and while can use them

LibreOffice: Loop in Basic


Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /home/and-beyond/www/main/wp-includes/class-wp-hook.php on line 286

Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /home/and-beyond/www/main/wp-includes/class-wp-hook.php on line 286

In the case we want edit cell from top to down in LibreOffice Calc, the loop function is useful.

Continue reading LibreOffice: Loop in Basic

CoffeeScript: How to write For Loop


Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /home/and-beyond/www/main/wp-includes/class-wp-hook.php on line 286

Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /home/and-beyond/www/main/wp-includes/class-wp-hook.php on line 286

How to write for loop in CoffeeScript.

for loop of array

In Ruby, it is written as items.each.

for loop of array with index

In Ruby, it is written as items.each_with_index.