swap method

Result<Some<T>> swap()

Implementation

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