@@ -170,29 +170,6 @@ public fun <V, E, R : Result<V, E>> valuesOf(vararg results: R): List<V> {
170
170
return results.asIterable().filterValues()
171
171
}
172
172
173
- @Deprecated(
174
- message = " Use allValuesOf instead" ,
175
- replaceWith = ReplaceWith (" valuesOf(results)" )
176
- )
177
- public fun <V , E , R : Result <V , E >> getAll (vararg results : R ): List <V > {
178
- return results.asIterable().filterValues()
179
- }
180
-
181
-
182
- /* *
183
- * Extracts from an [Iterable] of [Results][Result] all the [Ok] elements. All the [Ok] elements
184
- * are extracted in order.
185
- *
186
- * - Haskell: [Data.Either.lefts](https://hackage.haskell.org/package/base-4.10.0.0/docs/Data-Either.html#v:lefts)
187
- */
188
- @Deprecated(
189
- message = " Use filterValues instead" ,
190
- replaceWith = ReplaceWith (" filterValues()" )
191
- )
192
- public fun <V , E > Iterable <Result <V , E >>.getAll (): List <V > {
193
- return filterValues()
194
- }
195
-
196
173
/* *
197
174
* Returns a [List] containing the [error][Result.error] of each element in the specified [results]
198
175
* that [is an error][Result.isErr]. Elements in the returned list are in the same order as the
@@ -204,28 +181,6 @@ public fun <V, E, R : Result<V, E>> errorsOf(vararg results: R): List<E> {
204
181
return results.asIterable().filterErrors()
205
182
}
206
183
207
- @Deprecated(
208
- message = " Use errorsOf instead" ,
209
- replaceWith = ReplaceWith (" errorsOf(results)" )
210
- )
211
- public fun <V , E , R : Result <V , E >> getAllErrors (vararg results : R ): List <E > {
212
- return results.asIterable().filterErrors()
213
- }
214
-
215
- /* *
216
- * Extracts from an [Iterable] of [Results][Result] all the [Err] elements. All the [Err] elements
217
- * are extracted in order.
218
- *
219
- * - Haskell: [Data.Either.rights](https://hackage.haskell.org/package/base-4.10.0.0/docs/Data-Either.html#v:rights)
220
- */
221
- @Deprecated(
222
- message = " Use filterErrors instead" ,
223
- replaceWith = ReplaceWith (" filterErrors()" )
224
- )
225
- public fun <V , E > Iterable <Result <V , E >>.getAllErrors (): List <E > {
226
- return filterErrors()
227
- }
228
-
229
184
/* *
230
185
* Partitions the specified [results] into a [Pair] of [Lists][List]. An element that
231
186
* [is ok][Result.isOk] will appear in the [first][Pair.first] list, whereas an element that
0 commit comments