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
|
||||
|
||||
b = Buffer!
|
||||
while true
|
||||
n = io.read!
|
||||
if n ~= nil
|
||||
b\add(n)
|
||||
else break
|
||||
with Buffer 10
|
||||
while true
|
||||
n = io.read!
|
||||
if n ~= nil
|
||||
\add n
|
||||
else
|
||||
break
|
||||
|
||||
for _, i in pairs b\data
|
||||
print i
|
||||
for _, i in pairs .data
|
||||
print i
|
Loading…
Reference in New Issue