Map is the operation that transforms sequence of objects to the sequence of other objects using map function.
MapStage syntax
MapStage
: 'map' '(' LambdaExpression ')'
;
Related tokens
Map examples
- For each table in a PDF take the text content
csharpselect(tables) // PdfTable ->map((item) => item.Text()) // string2. For each table row get first cell text as 'Name' and second cell as 'Description.'csharpselect(tableRows) // PdfTable ->map((row) => new { Title = row.GetCell(1).Text(), Description = row.GetCell(2).Text() }) // object