Optional.take

Takes the value out of the optional, leaving a None in it's place

struct Optional(T)
T
take
()

Return Value

Type: T

the value the optional holds

Throws

OptionalIsNoneException if the optional is a None instead of a Some

Meta