csv :: CsvWriter :: write_elements
els
as a record.The representation of each cell is determined by to_s
.
# Append the elements in `els` as a record.
#
# The representation of each cell is determined by `to_s`.
fun write_elements(els: Object...) do
var os = ostream
var esc = delimiter
var sep = separator
var eol = eol
for i in [0 .. els.length - 1[ do
os.write(els[i].to_s.escape_to_csv(sep, esc, eol))
os.write_char(sep)
end
os.write(els.last.to_s.escape_to_csv(sep, esc, eol))
os.write(eol)
end
lib/csv/csv.nit:192,2--206,4