append. Appending row to a table

^table.append{data}
^table.append[data]
   [3.4.0]
^table.append[hash]   [3.4.4]

The method appends a row to the end of the table. The
row must be provided in tab-delimited format or hash.
The table row must have the same structure as the table to which it is appended.

Example
$stuff[^table::create{name   pos
Alexander   boss
Sergey     coder
}]
^stuff.append{
Nikolay   designer}
^stuff.append[
   $.name[
Michael]
   
$.
pos[visitor]
}

^stuff.save[stuff.txt]

The example code will append a new row to the table
$stuff and save the whole table to the disk.



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 30.03.2016