Unpack Named avatar

Unpack Named

1 version
Open in App

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

TypeDescription
Named aA value of a named type.

Outputs

TypeDescription
aThe underlying representation.

Parameters

This transformation takes no parameters.

Works best with

  • Pack named — natural inverse.
  • Unpack record or Unpack tuple downstream to extract individual fields.

Caveats

  • Once unpacked, downstream consumers no longer have the domain type's identity. Re-wrap with Pack named if 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