flatten method

Option<(A, B, C)> flatten()

Flattens an option into a single tuple.

Implementation

Option<(A, B, C)> flatten() {
  return map((e) => (e.$1.$1, e.$1.$2, e.$2));
}