Logo

Programming-Idioms

  • Lua
local i = 0
repeat
	i = i + 1
	print("Hello")
until i == 10
for i=1, 10 do
	print('Hello')
end
print(("Hello\n"):rep(10))
print(string.rep("Hello\n", 10))
with Ada.Text_IO;
use Ada.Text_IO;
for I in 1 .. 10 loop
  Put_Line ("Hello");
end loop;

New implementation...
< >
programming-idioms.org