Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Match

func Match<T, E, U>(ok: (T) -> U, error: (E) -> U) -> U

Declaring type: ResultOperators
Module: System
Assembly: System.Runtime.dll

Extension from ResultOperators.Match

Parameters

Name Type Description
self Result<T, E>
ok Function
error Function

Return value

U