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.2.0/index.js#L207">`Either.fantasy-land/of :: b -> Either a b`</a>
70
+
#### <aname="Either.fantasy-land/of"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L194">`Either.fantasy-land/of :: b -> Either a b`</a>
80
71
81
72
-`of (Either) (x)` is equivalent to `Right (x)`
82
73
@@ -85,7 +76,7 @@ Either [type identifier][].
85
76
Right (42)
86
77
```
87
78
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>
79
+
#### <aname="Either.fantasy-land/chainRec"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L207">`Either.fantasy-land/chainRec :: ((a -> c, b -> c, a) -> Either d c, a) -> Either d b`</a>
89
80
90
81
```javascript
91
82
>Z.chainRec (
@@ -105,7 +96,7 @@ Left ('!!')
105
96
Right (65536)
106
97
```
107
98
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>
99
+
#### <aname="Either.prototype.@@show"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L236">`Either#@@show :: (Showable a, Showable b) => Either a b ~> () -> String`</a>
109
100
110
101
-`show (Left (x))` is equivalent to `'Left (' + show (x) + ')'`
111
102
-`show (Right (x))` is equivalent to `'Right (' + show (x) + ')'`
@@ -118,7 +109,7 @@ Right (65536)
118
109
'Right ([1, 2, 3])'
119
110
```
120
111
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>
112
+
#### <aname="Either.prototype.fantasy-land/equals"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L255">`Either#fantasy-land/equals :: (Setoid a, Setoid b) => Either a b ~> Either a b -> Boolean`</a>
122
113
123
114
-`Left (x)` is equal to `Left (y)`[iff][]`x` is equal to `y`
124
115
according to [`Z.equals`][]
@@ -137,7 +128,7 @@ true
137
128
false
138
129
```
139
130
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>
131
+
#### <aname="Either.prototype.fantasy-land/lte"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L280">`Either#fantasy-land/lte :: (Ord a, Ord b) => Either a b ~> Either a b -> Boolean`</a>
141
132
142
133
-`Left (x)` is less than or equal to `Left (y)`[iff][]`x` is less
143
134
than or equal to `y` according to [`Z.lte`][]
@@ -159,7 +150,7 @@ false
159
150
[Left (0), Left (1), Left (2)]
160
151
```
161
152
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>
153
+
#### <aname="Either.prototype.fantasy-land/concat"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L308">`Either#fantasy-land/concat :: (Semigroup a, Semigroup b) => Either a b ~> Either a b -> Either a b`</a>
163
154
164
155
-`concat (Left (x)) (Left (y))` is equivalent to
165
156
`Left (concat (x) (y))`
@@ -182,7 +173,7 @@ Right ([1, 2, 3])
182
173
Right ([1, 2, 3])
183
174
```
184
175
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>
176
+
#### <aname="Either.prototype.fantasy-land/map"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L337">`Either#fantasy-land/map :: Either a b ~> (b -> c) -> Either a c`</a>
186
177
187
178
-`map (f) (Left (x))` is equivalent to `Left (x)`
188
179
-`map (f) (Right (x))` is equivalent to `Right (f (x))`
@@ -195,7 +186,7 @@ Left ('sqrt undefined for -1')
195
186
Right (100)
196
187
```
197
188
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>
189
+
#### <aname="Either.prototype.fantasy-land/bimap"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L356">`Either#fantasy-land/bimap :: Either a c ~> (a -> b, c -> d) -> Either b d`</a>
199
190
200
191
-`bimap (f) (g) (Left (x))` is equivalent to `Left (f (x))`
201
192
-`bimap (f) (g) (Right (x))` is equivalent to `Right (g (x))`
@@ -208,7 +199,7 @@ Left ('ABC')
208
199
Right (100)
209
200
```
210
201
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>
202
+
#### <aname="Either.prototype.fantasy-land/ap"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L375">`Either#fantasy-land/ap :: Either a b ~> Either a (b -> c) -> Either a c`</a>
212
203
213
204
-`ap (Left (x)) (Left (y))` is equivalent to `Left (x)`
214
205
-`ap (Left (x)) (Right (y))` is equivalent to `Left (x)`
@@ -229,7 +220,7 @@ Left ('sqrt undefined for -1')
229
220
Right (100)
230
221
```
231
222
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>
223
+
#### <aname="Either.prototype.fantasy-land/chain"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L402">`Either#fantasy-land/chain :: Either a b ~> (b -> Either a c) -> Either a c`</a>
233
224
234
225
-`chain (f) (Left (x))` is equivalent to `Left (x)`
235
226
-`chain (f) (Right (x))` is equivalent to `f (x)`
@@ -248,28 +239,28 @@ Left ('sqrt undefined for -1')
248
239
Right (5)
249
240
```
250
241
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>
242
+
#### <aname="Either.prototype.fantasy-land/alt"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L427">`Either#fantasy-land/alt :: Either a b ~> Either a b -> Either a b`</a>
252
243
253
-
-`alt (Left (x)) (Left (y))` is equivalent to `Left (y)`
254
-
-`alt (Left (x)) (Right (y))` is equivalent to `Right (y)`
255
-
-`alt (Right (x)) (Left (y))` is equivalent to `Right (x)`
256
-
-`alt (Right (x)) (Right (y))` is equivalent to `Right (x)`
244
+
-`alt (Left (y)) (Left (x))` is equivalent to `Left (y)`
245
+
-`alt (Right (y)) (Left (x))` is equivalent to `Right (y)`
246
+
-`alt (Left (y)) (Right (x))` is equivalent to `Right (x)`
247
+
-`alt (Right (y)) (Right (x))` is equivalent to `Right (x)`
257
248
258
249
```javascript
259
-
>S.alt (Left ('A')) (Left ('B'))
250
+
>S.alt (Left ('B')) (Left ('A'))
260
251
Left ('B')
261
252
262
-
>S.alt (Left ('C')) (Right (1))
253
+
>S.alt (Right (1)) (Left ('C'))
263
254
Right (1)
264
255
265
-
>S.alt (Right (2)) (Left ('D'))
256
+
>S.alt (Left ('D')) (Right (2))
266
257
Right (2)
267
258
268
-
>S.alt (Right (3)) (Right (4))
259
+
>S.alt (Right (4)) (Right (3))
269
260
Right (3)
270
261
```
271
262
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>
263
+
#### <aname="Either.prototype.fantasy-land/reduce"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L454">`Either#fantasy-land/reduce :: Either a b ~> ((c, b) -> c, c) -> c`</a>
273
264
274
265
-`reduce (f) (x) (Left (y))` is equivalent to `x`
275
266
-`reduce (f) (x) (Right (y))` is equivalent to `f (x) (y)`
@@ -282,7 +273,7 @@ Right (3)
282
273
[1, 2]
283
274
```
284
275
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>
276
+
#### <aname="Either.prototype.fantasy-land/traverse"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L473">`Either#fantasy-land/traverse :: Applicative f => Either a b ~> (TypeRep f, b -> f c) -> f (Either a c)`</a>
286
277
287
278
-`traverse (A) (f) (Left (x))` is equivalent to `of (A) (Left (x))`
288
279
-`traverse (A) (f) (Right (x))` is equivalent to `map (Right) (f (x))`
@@ -295,7 +286,7 @@ Right (3)
295
286
[Right ('foo'), Right ('bar'), Right ('baz')]
296
287
```
297
288
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>
289
+
#### <aname="Either.prototype.fantasy-land/extend"href="https://github.com/sanctuary-js/sanctuary-either/blob/v2.0.0/index.js#L492">`Either#fantasy-land/extend :: Either a b ~> (Either a b -> c) -> Either a c`</a>
299
290
300
291
-`extend (f) (Left (x))` is equivalent to `Left (x)`
301
292
-`extend (f) (Right (x))` is equivalent to `Right (f (Right (x)))`
0 commit comments