IONonEmptyIListOps<A>
extension IONonEmptyIListOps<A> on NonEmptyIList<A>Methods
flatTraverseIO() extension
Applies f to each element of this list and collects the results into a new list that is flattened using concatenation. If an error or cancelation is encountered for any element, that result is returned and any additional elements will not be evaluated.
Available on NonEmptyIList<A>, provided by the IONonEmptyIListOps<A> extension
Implementation
IO<IList<B>> flatTraverseIO<B>(Function1<A, IO<IList<B>>> f) => toIList().flatTraverseIO(f);parTraverseIO() extension
IO<NonEmptyIList<B>> parTraverseIO<B>(IO<B> Function(A) f)Asynchronously applies f to each element of this list and collects the results into a new list. If an error or cancelation is encountered for any element, that result is returned and all other elements will be canceled if possible.
Available on NonEmptyIList<A>, provided by the IONonEmptyIListOps<A> extension
Implementation
IO<NonEmptyIList<B>> parTraverseIO<B>(Function1<A, IO<B>> f) =>
IO.both(f(head), tail.parTraverseIO(f)).map((t) => NonEmptyIList(t.$1, t.$2));parTraverseIO_() extension
Asynchronously applies f to each element of this list, discarding any results. If an error or cancelation is encountered for any element, that result is returned and all other elements will be canceled if possible.
Available on NonEmptyIList<A>, provided by the IONonEmptyIListOps<A> extension
Implementation
IO<Unit> parTraverseIO_<B>(Function1<A, IO<B>> f) => toIList().parTraverseIO_(f);traverseFilterIO() extension
Applies f to each element of this list and collects the results into a new list. Any results from f that are None are discarded from the resulting list. If an error or cancelation is encountered for any element, that result is returned and any additional elements will not be evaluated.
Available on NonEmptyIList<A>, provided by the IONonEmptyIListOps<A> extension
Implementation
IO<IList<B>> traverseFilterIO<B>(Function1<A, IO<Option<B>>> f) => toIList().traverseFilterIO(f);traverseIO() extension
IO<NonEmptyIList<B>> traverseIO<B>(IO<B> Function(A) f)Applies f to each element of this list and collects the results into a new list. If an error or cancelation is encountered for any element, that result is returned and any additional elements will not be evaluated.
Available on NonEmptyIList<A>, provided by the IONonEmptyIListOps<A> extension
Implementation
IO<NonEmptyIList<B>> traverseIO<B>(Function1<A, IO<B>> f) =>
f(head).flatMap((h) => tail.traverseIO(f).map((t) => NonEmptyIList(h, t)));traverseIO_() extension
Applies f to each element of this list, discarding any results. If an error or cancelation is encountered for any element, that result is returned and any additional elements will not be evaluated.
Available on NonEmptyIList<A>, provided by the IONonEmptyIListOps<A> extension
Implementation
IO<Unit> traverseIO_<B>(Function1<A, IO<B>> f) => toIList().traverseIO_(f);