We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3c6d9 commit f5b84fbCopy full SHA for f5b84fb
README.md
@@ -53,7 +53,7 @@ let r = x.mapOr(42) { (v: String) -> Int in
53
} // r == 3
54
```
55
56
-### mapOrElse\<T>\(_ def: () -> T, _ f: (Wrapped) -> T) -> T {
+### mapOrElse\<T>\(_ def: () -> T, _ f: (Wrapped) -> T) -> T
57
Applies a function to the contained value (if any), or computes a default (if not).
58
```swift
59
let x: String? = nil
0 commit comments