Logo GenPRES

SheetRows Module

Reads the cells of sheet rows by the column names in the header row, and lists the required columns missing from the header.

Functions and values

Function or value Description

SheetRows.cell header row column

Full Usage: SheetRows.cell header row column

Parameters:
    header : 'a array
    row : string[]
    column : 'a

Returns: string
Type parameters: 'a (requires equality)

Returns the trimmed cell of a row in a column of the header, or an empty text when the row is shorter than the header. The column must be in the header.

header : 'a array
row : string[]
column : 'a
Returns: string

SheetRows.missingColumns header required

Full Usage: SheetRows.missingColumns header required

Parameters:
    header : 'a array
    required : 'a list

Returns: 'a list
Type parameters: 'a (requires equality)

Returns the required columns that the header lacks, in the order of the required columns.

header : 'a array
required : 'a list
Returns: 'a list

Type something to start searching.