The OpenD Programming Language

match.match

The actual match function.

template match(handlers...)
ref
match
(
SumTypes...
)
(
auto ref SumTypes args
)
if (
allSatisfy!(isSumType, SumTypes) &&
args.length > 0
)

Parameters

args SumTypes

One or more SumType objects.

Meta