lua.wetgenes.csv.map
Use the first line to map all other lines into named keys, an empty string will map to nil. This will return an array of items that is smaller than the array of lines by at least one as we also trim trailing empty objects.
items = wcsv.map(lines)
items = wcsv.map(wcsv.parse(text))