swap method

Some<Sync<T>> swap()

Implementation

@pragma('vm:prefer-inline')
Some<Sync<T>> swap() => map((e) => e.unwrap()).wrapInSome();