-
Notifications
You must be signed in to change notification settings - Fork 0
Set operations on tables
Leon Starr edited this page Nov 6, 2023
·
2 revisions
The following operations are defined only when each operand shares the same exact table header.
t #= q ^ r // intersect
t #= q + r // union
t #= q - r // subtract (subset of q without r)
t #= q * r // multiply (cross product)
t #= q % r // symmetric difference (union minus intersection)
quantityOfR = ??t // total number of rows
Note that the ^ operator must be followed by a space so it is not interpreted as the input parameter symbol. So q ^r would be an error since it would look like a name followed by the name of an input parameter.
Copyright 2020, 2021, 2022, 2023, 2025 © Leon Starr under MIT Open Source License
- Why they are problematic
- Instance attribute creation values
- Boolean values
- Special values
- Enumerated values
- Action block
- Statement
- Single line action
- Multiple dependent actions on a single line
- An action spread across multiple lines
- A conditional group of single line actions
- Comments
- Finding instances
- Attribute access
- Creation and deletion
- Subclass migration
- Creating a table from a class
- Creating a table with a definition
- Converting a table into a class
- Set operations on tables
- Set comparisons on tables
- Join
- Rename
- Extend
- Aggregation
- Rank
- Image
- Input values
- Signatures and name doubling
- Output values
- Execution order
- Sequential execution
- Conditional execution
- Signals
- Scrall has no for_each action
- Iteration