Mercurial Hosting > luan
comparison src/luan/modules/Io.luan @ 1276:623dfe0e2e73
change Luan.values
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 10 Dec 2018 15:04:09 -0700 |
parents | 5d0cbd908582 |
children | 5ba660381bd5 |
comparison
equal
deleted
inserted
replaced
1275:cc3dabc05f72 | 1276:623dfe0e2e73 |
---|---|
40 end | 40 end |
41 | 41 |
42 | 42 |
43 function Io.print_to(out,...) | 43 function Io.print_to(out,...) |
44 local list = {} | 44 local list = {} |
45 for v in values(...) do | 45 for _, v in values(...) do |
46 list[#list+1] = to_string(v) | 46 list[#list+1] = to_string(v) |
47 list[#list+1] = '\t' | 47 list[#list+1] = '\t' |
48 end | 48 end |
49 if #list > 0 then | 49 if #list > 0 then |
50 list[#list] = '\n' | 50 list[#list] = '\n' |