Unpack Named
1 version
Unpack named
Reveals the underlying structure of a named type by replacing it with its original representation.
Use this when
- Downstream components do not understand the domain named type and expect its inner representation.
- You need to inspect, route, or manipulate fields inside a named type (e.g. dispatch by
class.id). - You are interfacing a typed domain component with a generic downstream processor.
What it does
Takes a value of a named type and emits its underlying structure. Input BoundingBox becomes {class: DetectedClass, rectangle: Rectangle<Double>}.
Inputs
| Type | Description |
|---|---|
Named a | A value of a named type. |
Outputs
| Type | Description |
|---|---|
a | The underlying representation. |
Parameters
This transformation takes no parameters.
Works best with
Pack named— natural inverse.Unpack recordorUnpack tupledownstream to extract individual fields.
Caveats
- Once unpacked, downstream consumers no longer have the domain type's identity. Re-wrap with
Pack namedif they need it. - The underlying representation is whatever the named type was declared as — do not assume a record shape.
Versions
- 7b822a47latestlinuxTransformation
Unpack named trasformation component