-
Notifications
You must be signed in to change notification settings - Fork 0
Extend
Leon Starr edited this page Nov 6, 2023
·
3 revisions
The extend operation adds an attribute to a table and populates it with values according to some formula.
The rename >> symbol becomes an extend operator if it has nothing on the left inside of a projection expression. Let’s say we have a table of Celsius temperatures and we want to add a column of equivalent Fahrenheit values.
ftemps #= ctemps[>>Fahrenheit(Celsius.toFdeg())].(Fahrenheit)
We start with the ctemps table which as only one column named Celsius. It is extended by adding a Fahrenheit column who’s value will be the Celsius temperature with the toFdeg conversion invoked. We assume that the temperature scalar provides this conversion operation.
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