mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
Improve Result/unwrap docs
Co-authored-by: Nicolas Abril <nicolas@higherorderco.com>
This commit is contained in:
parent
7ef8ff9060
commit
2a1f0774d7
@ -130,6 +130,8 @@ type Result<A, B>:
|
||||
|
||||
Returns the inner value of `Result/Ok` or `Result/Err`.
|
||||
|
||||
If the types `A` and `B` are different, should only be used in type unsafe programs or when only one variant is guaranteed to happen.
|
||||
|
||||
```python
|
||||
def Result/unwrap(result: Result<A, B>): A || B
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user