document isX bifunctor methods
This commit is contained in:
parent
5461295b0b
commit
026be017be
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -68,6 +68,12 @@ Represents a value which may not exist.
|
|||
##### fold :: Option f => f a ~> ((b, a) -> b, b) -> b
|
||||
> Option\<T\>.fold\<U\>(fn: ((acc: U, value: T) -> U, initial: U) -> U) -> U
|
||||
|
||||
##### isSome :: Option f => () -> boolean
|
||||
> Option\<T\>.isSome() -> boolean
|
||||
|
||||
##### isNone :: Option f => () -> boolean
|
||||
> Option\<T\>.isNone() -> boolean
|
||||
|
||||
### Result
|
||||
|
||||
Represents a value which may fail.
|
||||
|
@ -94,3 +100,9 @@ Represents a value which may fail.
|
|||
##### bimap :: Result f => f a c ~> (a -> b, c -> d) -> f b d
|
||||
> Result\<T1, E1\>.bimap\<T2, E2\>(x: (value: T1) -> T2, y: (error: E1) -> E2) -> Result\<T2, E2\>
|
||||
|
||||
##### isOk :: Result f => () -> boolean
|
||||
> Result\<T, E\>.isOk() -> boolean
|
||||
|
||||
##### isErr :: Result f => () -> boolean
|
||||
> Result\<T, E\>.isErr() -> boolean
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue