public class IterableKt
| Modifier and Type | Method and Description |
|---|---|
static <V,E> Result<java.util.List,E> |
combine(au.com.dius.pact.com.github.michaelbull.result.Result results)
|
static <V,E> Result<java.util.List,E> |
combine(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
|
static <T,R,E> Result<R,E> |
fold(java.lang.Iterable<? extends T> $receiver,
R initial,
kotlin.jvm.functions.Function2<? super R,? super T,? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends R,? extends E>> operation)
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
|
static <T,R,E> Result<R,E> |
foldRight(java.util.List<? extends T> $receiver,
R initial,
kotlin.jvm.functions.Function2<? super T,? super R,? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends R,? extends E>> operation)
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
|
static <V,E> java.util.List<V> |
getAll(au.com.dius.pact.com.github.michaelbull.result.Result results)
Extracts from a vararg of
class Result all the class Ok elements. All the class Ok elements are
extracted in order. |
static <V,E> java.util.List<V> |
getAll(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
Extracts from an Iterable of
class Result all the class Ok elements. All the class Ok elements
are extracted in order. |
static <V,E> java.util.List<E> |
getAllErrors(au.com.dius.pact.com.github.michaelbull.result.Result results)
Extracts from a vararg of
class Result all the class Err elements. All the class Err elements
are extracted in order. |
static <V,E> java.util.List<E> |
getAllErrors(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
Extracts from an Iterable of
class Result all the class Err elements. All the class Err
elements are extracted in order. |
static <V,E> kotlin.Pair<java.util.List,java.util.List> |
partition(au.com.dius.pact.com.github.michaelbull.result.Result results)
Partitions a vararg of
class Result into a Pair of Lists. All the class Ok elements
are extracted, in order, to the first value. Similarly the class Err elements are
extracted to the Pair.second value. |
static <V,E> kotlin.Pair<java.util.List,java.util.List> |
partition(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
Partitions an Iterable of
class Result into a Pair of Lists. All the class Ok
elements are extracted, in order, to the first value. Similarly the class Err
elements are extracted to the Pair.second value. |
public static <T,R,E> Result<R,E> fold(java.lang.Iterable<? extends T> $receiver, R initial, kotlin.jvm.functions.Function2<? super R,? super T,? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends R,? extends E>> operation)
Accumulates value starting with initial value and applying operation from left to right to current accumulator value and each element.
public static <T,R,E> Result<R,E> foldRight(java.util.List<? extends T> $receiver, R initial, kotlin.jvm.functions.Function2<? super T,? super R,? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends R,? extends E>> operation)
Accumulates value starting with initial value and applying operation from right to left to each element and current accumulator value.
public static <V,E> Result<java.util.List,E> combine(au.com.dius.pact.com.github.michaelbull.result.Result results)
Combines a vararg of class Result into a single class Result (holding a List).
Elm: Result.Extra.combine
class Result,
class Result,
List,
Result.Extra.combinepublic static <V,E> Result<java.util.List,E> combine(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
Combines an Iterable of class Result into a single class Result (holding a List).
Elm: Result.Extra.combine
class Result,
class Result,
List,
Result.Extra.combinepublic static <V,E> java.util.List<V> getAll(au.com.dius.pact.com.github.michaelbull.result.Result results)
Extracts from a vararg of class Result all the class Ok elements. All the class Ok elements are
extracted in order.
Haskell: Data.Either.lefts
class Result,
class Ok,
class Ok,
Data.Either.leftspublic static <V,E> java.util.List<V> getAll(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
Extracts from an Iterable of class Result all the class Ok elements. All the class Ok elements
are extracted in order.
Haskell: Data.Either.lefts
class Result,
class Ok,
class Ok,
Data.Either.leftspublic static <V,E> java.util.List<E> getAllErrors(au.com.dius.pact.com.github.michaelbull.result.Result results)
Extracts from a vararg of class Result all the class Err elements. All the class Err elements
are extracted in order.
Haskell: Data.Either.rights
class Result,
class Err,
class Err,
Data.Either.rightspublic static <V,E> java.util.List<E> getAllErrors(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
Extracts from an Iterable of class Result all the class Err elements. All the class Err
elements are extracted in order.
Haskell: Data.Either.rights
class Result,
class Err,
class Err,
Data.Either.rightspublic static <V,E> kotlin.Pair<java.util.List,java.util.List> partition(au.com.dius.pact.com.github.michaelbull.result.Result results)
Partitions a vararg of class Result into a Pair of Lists. All the class Ok elements
are extracted, in order, to the first value. Similarly the class Err elements are
extracted to the Pair.second value.
Haskell: Data.Either.partitionEithers
class Result,
Pair,
Lists,
class Ok,
first,
class Err,
Pair.second,
Data.Either.partitionEitherspublic static <V,E> kotlin.Pair<java.util.List,java.util.List> partition(java.lang.Iterable<? extends au.com.dius.pact.com.github.michaelbull.result.Result<? extends V,? extends E>> $receiver)
Partitions an Iterable of class Result into a Pair of Lists. All the class Ok
elements are extracted, in order, to the first value. Similarly the class Err
elements are extracted to the Pair.second value.
Haskell: Data.Either.partitionEithers
class Result,
Pair,
Lists,
class Ok,
first,
class Err,
Pair.second,
Data.Either.partitionEithers