Contents

remove(_:)

Removes and returns the output value with the specified name.

Declaration

mutating func remove(_ outputName: String) -> InferenceValue?

Parameters

  • outputName:

    The name of the output to remove.

Mentioned in

Return Value

The output value, or nil if no output with the specified name exists.

Discussion

After you remove a value, subsequent calls with the same name return nil.

See Also

Accessing outputs