FIND YOUR NEXT FEW LINES
Results for “LINQ transformations”
Small, practical examples. Search by task or narrow things down below.
43 snippets foundClear filters
Sort an integer array with qsort
C: The comparator uses relational comparisons to avoid subtraction overflow.
C✓ Tested
Take a page from a stream
Java: Use skip and limit with a known stable input order.
Java✓ Tested
Transform each stream value
Java: Use map to turn each input into a corresponding output.
Java✓ Tested
Transform each value with map
Transform each value with map in a complete Rust program using the standard library.
Rust✓ Tested
Filter even numbers
Use LINQ Where to keep even C# values.
C#✓ Tested
Remove duplicate values
Use LINQ Distinct and OrderBy for a sorted C# result.
C#✓ Tested
Sum integer values
Sum a C# sequence using LINQ.
C#✓ Tested