Allow multiple arguments to IO.print().

This commit is contained in:
Bob Nystrom
2014-04-09 07:48:35 -07:00
parent dfe65305c3
commit 7393e12555
14 changed files with 176 additions and 25 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
for (i in 0..2) {
IO.print("outer " + i.toString)
IO.print("outer ", i)
if (i > 1) break
for (j in 0..2) {
IO.print("inner " + j.toString)
IO.print("inner ", j)
if (j > 1) break
}
}
+2 -2
View File
@@ -1,11 +1,11 @@
var i = 0
while (true) {
IO.print("outer " + i.toString)
IO.print("outer ", i)
if (i > 1) break
var j = 0
while (true) {
IO.print("inner " + j.toString)
IO.print("inner ", j)
if (j > 1) break
j = j + 1