diff options
Diffstat (limited to 'decimal.lua')
-rwxr-xr-x | decimal.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/decimal.lua b/decimal.lua index 6f32e5d..df6975e 100755 --- a/decimal.lua +++ b/decimal.lua @@ -1,11 +1,7 @@ #!/usr/bin/env lua local eyes = require "eyes" +local format = require "format" local reading = require "reading" for _, message in ipairs(eyes) do - local start, value = reading.next_value(message) - io.write(value) - for _, value in reading.values(message, start) do - io.write(",", value) - end - print() + print(format.csv(reading.tvalues(message))) end |