flatten method

Option<T> flatten()

Flattens a nested Option type value one level.

Returns:

See also: Rust: Option::flatten()

Implementation

Option<T> flatten() => switch (this) {
	Some(value: Option<T> value) => value,
	None() => None()
};