swap method

Some<Ok<T>> swap()

Implementation

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