Skip to content

print_tsv

Prints a record as a tab-separated string of values.

print_tsv(input:record, [list_separator=str, null_value=str]) -> string

The print_tsv function prints a record’s values as a tab separated string.

The record you want to print.

The string separating different elements in a list within a single field.

Defaults to ",".

The string denoting an absent value.

Defaults to "-".

from {
x:1,
y:true,
z: "String"
}
output = this.print_tsv()
{
x: 1,
y: true,
z: "String",
output: "1\ttrue\tString",
}

parse_tsv, write_tsv