Try.match

Pass two lambdas to the match function. The first one handles the success case and the second one handles the failure case.

Calling match will execute the try function if it has not already done so

struct Try(alias fun)
match
(
handlers...
)
(
)

Parameters

handlers

lamda that handles the success case

handlers

lambda that handles the exception

Return Value

Type: auto

Whatever the lambas return

Meta