Merge: Functional api
[nit.git] / examples / rosettacode / loops_continue.nit
1 #!/usr/bin/env nit
2 #
3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
5
6 # Task: Loops/Continue
7 #
8 # SEE: http://rosettacode.org/wiki/Loops/Continue
9 module loops_continue
10
11 for i in [1..10] do
12 printn i
13 if i % 5 == 0 then
14 printn "\n"
15 continue
16 end
17 printn ", "
18 end