Union functions

# Name Description Complexity
1 extract(T|Unit): T Gets a data type from a union 13
2 value(T|Unit): T Gets a data type from a union 13
3 valueOrErrorMessage(T|Unit, String): T Gets a data type from a union. Throws an exception if there is no data 13

extract(T|Unit): T

Gets a data type from a union.

extract(T|Unit): T

Parameters

a: T|Unit

The argument.

value(T|Unit): T

Gets a data type from a union.

value(a: T|Unit): T

Parameters

a: T|Unit

Value from an option.

valueOrErrorMessage(T|Unit, String): T

Gets a data type from a union. Throws an exception if there is no data.

valueOrErrorMessage(a: T|Unit, msg: String): T

Parameters

a: T|Unit

Value from an option.

msg: String

Error message.

results matching ""

    No results matching ""