Contents

applied(to:eventHandler:)

Unwraps an optional element or throws if the value is nil.

Declaration

func applied(to input: Element?, eventHandler: EventHandler? = nil) throws -> Element

Parameters

  • input:

    The optional input.

  • eventHandler:

    An event handler.

Return Value

The unwrapped value.

Discussion