klyn.io.csv.CSVReader.lastIndexOf
method

    public override lastIndexOf(item as ArrayList<String>, start as Int = -1) as Int:

Description

Returns the last index of a parsed row.

Parameters

Parameter | Description
--- | ---
`item` | Row to locate.
`start` | Zero-based reverse-search start, or `-1` for the last row.

Returns

The last matching index, or `-1` when no row matches.

Example

    import klyn.io
    import klyn.io.csv

    reader = CSVReader(StringReader("name\nAda\nAda"))
    assert reader.lastIndexOf(["Ada"]) == 2