Pack Named
1 version
Pack named
Wraps a structured value into its corresponding named type, converting a raw record or tuple into a strongly typed alias.
Use this when
- You have the inner representation of a named type and need to emit it as the named type itself.
- You are reconstructing a domain type (e.g.
BoundingBox) from its component parts. - You are bridging raw output from a generic component into a typed downstream consumer.
What it does
Takes the underlying representation of a named type and emits the named type. Input {class: DetectedClass, rectangle: Rectangle<Double>} becomes BoundingBox if that named type is defined with the same inner structure.
Inputs
| Type | Description |
|---|---|
a | Underlying representation of the named type. |
Outputs
| Type | Description |
|---|---|
Named a | The wrapped, named-type version of the input. |
Parameters
This transformation takes no parameters. The target named type is inferred from the downstream connection.
Works best with
Unpack named— natural inverse.- Components that compose raw records and need to re-emit them as a domain type.
Caveats
- The inner representation must match the named type's definition exactly — field names, types, and order for records; element types and positions for tuples.
- There is no runtime type coercion — only named-type wrapping.
Versions
- 9e0ddc00latestlinuxTransformation
Pack named trasformation component