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