FIND YOUR NEXT FEW LINES
Results for “Collections & styling”
Small, practical examples. Search by task or narrow things down below.
88 snippets foundClear filters
Sum a collection
Calculate a total with Measure-Object.
Measure-Object✓ Tested
Sum typed values with reduce
Accumulate numeric array elements.
reduce✓ Tested
Test whether any or all values match
C#: Any and All short-circuit instead of materializing filtered collections.
C#✓ Tested
Type a dictionary with Record
Limit a lookup table to a known set of keys.
Record✓ Tested