move this here, more idiomatic style
This commit is contained in:
parent
65c265cb62
commit
8404630ee7
|
@ -9,12 +9,13 @@ class Buffer
|
||||||
|
|
||||||
table.insert @data, line
|
table.insert @data, line
|
||||||
|
|
||||||
b = Buffer!
|
with Buffer 10
|
||||||
while true
|
while true
|
||||||
n = io.read!
|
n = io.read!
|
||||||
if n ~= nil
|
if n ~= nil
|
||||||
b\add(n)
|
\add n
|
||||||
else break
|
else
|
||||||
|
break
|
||||||
|
|
||||||
for _, i in pairs b\data
|
for _, i in pairs .data
|
||||||
print i
|
print i
|
Loading…
Reference in New Issue