First is the operation that returns first object from the sequence or throws an exception if the sequence does not contain elements.
FirstStage syntax
First
: 'first' '(' LambdaExpression? ')'
;
Related tokens
First examples
- Find a table cell with the text 'Alex'. Throws when not found.
csharpselect(tableCells) // PdfTableCell ->first((item) => item.Text() == 'Alex') // PdfTableCell