unzip method
Unzips this Option
if this Option
holds a Record of two values.
Returns:
(Some<U>, Some<V>)
if thisOption
is Some<(U, V)>.(None<U>, None<V>)
if thisOption
is None<(U, V)>.
See also:
Rust: Option::unzip()
Implementation
(Option<T>, Option<U>) unzip() {
return switch (this) {
Some(v: (T a, U b)) => (Some(a), Some(b)),
None() => (None(), None()),
};
}