Contents

extractValues(as:)

Returns strongly-typed match output by converting this type-erased output to the specified type, if possible.

Declaration

func extractValues<Output>(as outputType: Output.Type = Output.self) -> Output?

Parameters

  • outputType:

    The expected output type.

Return Value

The output, if the underlying value can be converted to outputType; otherwise, nil.