Skip to content

Pack

Pack combines one input per field into a named composite value.

For a type C with fields a and b, y[n] = C { a: u_a[n], b: u_b[n] }. Packing adds no state or delay. Each input must match its field’s declared type; the fields need not share a type.

Direction Type Meaning
Inputs One per declared field, with that field’s type Values used to construct the composite.
Output Selected composite type The assembled value.
Parameter Type Default Meaning
composite Composite type Empty Type to construct; selecting it determines the input fields.

For Measurement { value: f64, valid: bool }, connect 12.5 to value and true to valid. Pack outputs Measurement { value: 12.5, valid: true }.

Use Field to extract a member.