swap method

Sync<Some<T>> swap()

Implementation

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