comparison core/src/luan/modules/Io.luan @ 402:62b457c50594

add stripe; change Luan.values to only return values, not indexes;
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 28 Apr 2015 22:38:31 -0600
parents 8668f3799ad9
children af82b266fe89
comparison
equal deleted inserted replaced
401:322c03d85ada 402:62b457c50594
15 local to_string = Luan.to_string 15 local to_string = Luan.to_string
16 local Table = require "luan:Table" 16 local Table = require "luan:Table"
17 17
18 function print_to(out,...) 18 function print_to(out,...)
19 local list = {} 19 local list = {}
20 for _,v in Luan.values(...) do 20 for v in Luan.values(...) do
21 list[#list+1] = to_string(v) 21 list[#list+1] = to_string(v)
22 list[#list+1] = '\t' 22 list[#list+1] = '\t'
23 end 23 end
24 if #list == 0 then 24 if #list == 0 then
25 out.write( '\n' ) 25 out.write( '\n' )