fromLists

Creates a CsvWithHeader from a list of rows, where the first row is the header.

Return

a CsvWithHeader if header is present, or null otherwise.

Parameters

allRows

all rows, with the first row as header


fun fromLists(header: List<String>, data: List<List<String>>): CsvWithHeader?

Creates a CsvWithHeader from a list of header and data rows.

Return

a CsvWithHeader if header row is not empty, or null otherwise.

Parameters

header

data rows