unzip method

(Option<T>, Option<U>) unzip()

Unzips this Option if this Option holds a Record of two values.

Returns:

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()),
  };
}