auto ret = [] for (auto i = 0; i < 5; ++i) { ret.push_back(i); } assert_equal([0,1,2,3,4], ret); var j = 0; for (;j<10; ++j) { } assert_equal(10, j); var k = 0; for (;k<10; ) { ++k; } assert_equal(10, k); for (;;) { break; } var l = 0; for (;;l = 1) { break; } assert_equal(0, l) def isNotFive(x) { if (x != 5) { return true } else { return false } } var m; for (m = 0; isNotFive(m); m = m + 1) { } assert_equal(5, m);