set-builder notation
Say it “the set of x such that…”
Describes a set by a rule: everything before the bar, filtered by the condition after it.
Example
All positive real numbers.
In code
[x for x in xs if x > 0]Where you’ll see it in ML
Defining feasible regions and decision regions.