You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### <aname="Either.fantasy-land/of"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L201">`Either.fantasy-land/of :: b -> Either a b`</a>
79
+
#### <aname="Either.fantasy-land/of"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L207">`Either.fantasy-land/of :: b -> Either a b`</a>
80
80
81
81
-`of (Either) (x)` is equivalent to `Right (x)`
82
82
@@ -85,7 +85,7 @@ Either [type identifier][].
85
85
Right (42)
86
86
```
87
87
88
-
#### <aname="Either.fantasy-land/chainRec"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L214">`Either.fantasy-land/chainRec :: ((a -> c, b -> c, a) -> Either d c, a) -> Either d b`</a>
88
+
#### <aname="Either.fantasy-land/chainRec"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L220">`Either.fantasy-land/chainRec :: ((a -> c, b -> c, a) -> Either d c, a) -> Either d b`</a>
89
89
90
90
```javascript
91
91
>Z.chainRec (
@@ -105,7 +105,7 @@ Left ('!!')
105
105
Right (65536)
106
106
```
107
107
108
-
#### <aname="Either.prototype.@@show"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L243">`Either#@@show :: (Showable a, Showable b) => Either a b ~> () -> String`</a>
108
+
#### <aname="Either.prototype.@@show"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L249">`Either#@@show :: (Showable a, Showable b) => Either a b ~> () -> String`</a>
109
109
110
110
-`show (Left (x))` is equivalent to `'Left (' + show (x) + ')'`
111
111
-`show (Right (x))` is equivalent to `'Right (' + show (x) + ')'`
@@ -118,7 +118,7 @@ Right (65536)
118
118
'Right ([1, 2, 3])'
119
119
```
120
120
121
-
#### <aname="Either.prototype.fantasy-land/equals"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L262">`Either#fantasy-land/equals :: (Setoid a, Setoid b) => Either a b ~> Either a b -> Boolean`</a>
121
+
#### <aname="Either.prototype.fantasy-land/equals"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L268">`Either#fantasy-land/equals :: (Setoid a, Setoid b) => Either a b ~> Either a b -> Boolean`</a>
122
122
123
123
-`Left (x)` is equal to `Left (y)`[iff][]`x` is equal to `y`
124
124
according to [`Z.equals`][]
@@ -137,7 +137,7 @@ true
137
137
false
138
138
```
139
139
140
-
#### <aname="Either.prototype.fantasy-land/lte"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L287">`Either#fantasy-land/lte :: (Ord a, Ord b) => Either a b ~> Either a b -> Boolean`</a>
140
+
#### <aname="Either.prototype.fantasy-land/lte"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L293">`Either#fantasy-land/lte :: (Ord a, Ord b) => Either a b ~> Either a b -> Boolean`</a>
141
141
142
142
-`Left (x)` is less than or equal to `Left (y)`[iff][]`x` is less
143
143
than or equal to `y` according to [`Z.lte`][]
@@ -159,7 +159,7 @@ false
159
159
[Left (0), Left (1), Left (2)]
160
160
```
161
161
162
-
#### <aname="Either.prototype.fantasy-land/concat"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L315">`Either#fantasy-land/concat :: (Semigroup a, Semigroup b) => Either a b ~> Either a b -> Either a b`</a>
162
+
#### <aname="Either.prototype.fantasy-land/concat"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L321">`Either#fantasy-land/concat :: (Semigroup a, Semigroup b) => Either a b ~> Either a b -> Either a b`</a>
163
163
164
164
-`concat (Left (x)) (Left (y))` is equivalent to
165
165
`Left (concat (x) (y))`
@@ -182,7 +182,7 @@ Right ([1, 2, 3])
182
182
Right ([1, 2, 3])
183
183
```
184
184
185
-
#### <aname="Either.prototype.fantasy-land/map"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L344">`Either#fantasy-land/map :: Either a b ~> (b -> c) -> Either a c`</a>
185
+
#### <aname="Either.prototype.fantasy-land/map"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L350">`Either#fantasy-land/map :: Either a b ~> (b -> c) -> Either a c`</a>
186
186
187
187
-`map (f) (Left (x))` is equivalent to `Left (x)`
188
188
-`map (f) (Right (x))` is equivalent to `Right (f (x))`
@@ -195,7 +195,7 @@ Left ('sqrt undefined for -1')
195
195
Right (100)
196
196
```
197
197
198
-
#### <aname="Either.prototype.fantasy-land/bimap"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L363">`Either#fantasy-land/bimap :: Either a c ~> (a -> b, c -> d) -> Either b d`</a>
198
+
#### <aname="Either.prototype.fantasy-land/bimap"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L369">`Either#fantasy-land/bimap :: Either a c ~> (a -> b, c -> d) -> Either b d`</a>
199
199
200
200
-`bimap (f) (g) (Left (x))` is equivalent to `Left (f (x))`
201
201
-`bimap (f) (g) (Right (x))` is equivalent to `Right (g (x))`
@@ -208,7 +208,7 @@ Left ('ABC')
208
208
Right (100)
209
209
```
210
210
211
-
#### <aname="Either.prototype.fantasy-land/ap"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L382">`Either#fantasy-land/ap :: Either a b ~> Either a (b -> c) -> Either a c`</a>
211
+
#### <aname="Either.prototype.fantasy-land/ap"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L388">`Either#fantasy-land/ap :: Either a b ~> Either a (b -> c) -> Either a c`</a>
212
212
213
213
-`ap (Left (x)) (Left (y))` is equivalent to `Left (x)`
214
214
-`ap (Left (x)) (Right (y))` is equivalent to `Left (x)`
@@ -229,7 +229,7 @@ Left ('sqrt undefined for -1')
229
229
Right (100)
230
230
```
231
231
232
-
#### <aname="Either.prototype.fantasy-land/chain"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L409">`Either#fantasy-land/chain :: Either a b ~> (b -> Either a c) -> Either a c`</a>
232
+
#### <aname="Either.prototype.fantasy-land/chain"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L415">`Either#fantasy-land/chain :: Either a b ~> (b -> Either a c) -> Either a c`</a>
233
233
234
234
-`chain (f) (Left (x))` is equivalent to `Left (x)`
235
235
-`chain (f) (Right (x))` is equivalent to `f (x)`
@@ -248,7 +248,7 @@ Left ('sqrt undefined for -1')
248
248
Right (5)
249
249
```
250
250
251
-
#### <aname="Either.prototype.fantasy-land/alt"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L434">`Either#fantasy-land/alt :: Either a b ~> Either a b -> Either a b`</a>
251
+
#### <aname="Either.prototype.fantasy-land/alt"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L440">`Either#fantasy-land/alt :: Either a b ~> Either a b -> Either a b`</a>
252
252
253
253
-`alt (Left (x)) (Left (y))` is equivalent to `Left (y)`
254
254
-`alt (Left (x)) (Right (y))` is equivalent to `Right (y)`
@@ -269,7 +269,7 @@ Right (2)
269
269
Right (3)
270
270
```
271
271
272
-
#### <aname="Either.prototype.fantasy-land/reduce"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L461">`Either#fantasy-land/reduce :: Either a b ~> ((c, b) -> c, c) -> c`</a>
272
+
#### <aname="Either.prototype.fantasy-land/reduce"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L467">`Either#fantasy-land/reduce :: Either a b ~> ((c, b) -> c, c) -> c`</a>
273
273
274
274
-`reduce (f) (x) (Left (y))` is equivalent to `x`
275
275
-`reduce (f) (x) (Right (y))` is equivalent to `f (x) (y)`
@@ -282,7 +282,7 @@ Right (3)
282
282
[1, 2]
283
283
```
284
284
285
-
#### <aname="Either.prototype.fantasy-land/traverse"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L480">`Either#fantasy-land/traverse :: Applicative f => Either a b ~> (TypeRep f, b -> f c) -> f (Either a c)`</a>
285
+
#### <aname="Either.prototype.fantasy-land/traverse"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L486">`Either#fantasy-land/traverse :: Applicative f => Either a b ~> (TypeRep f, b -> f c) -> f (Either a c)`</a>
286
286
287
287
-`traverse (A) (f) (Left (x))` is equivalent to `of (A) (Left (x))`
288
288
-`traverse (A) (f) (Right (x))` is equivalent to `map (Right) (f (x))`
@@ -295,7 +295,7 @@ Right (3)
295
295
[Right ('foo'), Right ('bar'), Right ('baz')]
296
296
```
297
297
298
-
#### <aname="Either.prototype.fantasy-land/extend"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.1.0/index.js#L499">`Either#fantasy-land/extend :: Either a b ~> (Either a b -> c) -> Either a c`</a>
298
+
#### <aname="Either.prototype.fantasy-land/extend"href="https://github.com/sanctuary-js/sanctuary-either/blob/v1.2.0/index.js#L505">`Either#fantasy-land/extend :: Either a b ~> (Either a b -> c) -> Either a c`</a>
299
299
300
300
-`extend (f) (Left (x))` is equivalent to `Left (x)`
301
301
-`extend (f) (Right (x))` is equivalent to `Right (f (Right (x)))`
@@ -308,9 +308,9 @@ Left ('sqrt undefined for -1')
0 commit comments