traverse

inline fun <B> traverse(fa: (A) -> Iterable<B>): List<Option<B>>

Deprecated

This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Option DSL, or explicit fold or when

Replace with

import arrow.core.Some
fold({ emptyList() }) { a -> fa(a).map(::Some) }

inline fun <AA, B> traverse(fa: (A) -> Either<AA, B>): Either<AA, Option<B>>

Deprecated

This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Option DSL, or explicit fold or when

Replace with

import arrow.core.Either.Right
import arrow.core.None
import arrow.core.Some
fold({ Right(None) }) { a -> fa(a).map(::Some) }

inline fun <AA, B> traverse(fa: (A) -> Validated<AA, B>): Validated<AA, Option<B>>

Deprecated

This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Option DSL, or explicit fold or when

Replace with

import arrow.core.Valid
import arrow.core.None
import arrow.core.Some
fold({ Valid(None) }) { a -> fa(a).map(::Some) }