FpdartOnNullable<T> extension

fpdart extension to work on nullable values T?

on
  • T?

Methods

toEither<L>(L onNull()) Either<L, T>
Convert a nullable type T? to Either:
toIOEither<L>(L onNull()) IOEither<L, T>
Convert a nullable type T? to IOEither.
toIOOption() IOOption<T>
Convert a nullable type T? to IOOption:
toOption() Option<T>
Convert a nullable type T? to Option:
toTaskEither<L>(L onNull()) TaskEither<L, T>
Convert a nullable type T? to TaskEither using a sync function:
toTaskEitherAsync<L>(Task<L> onNull) TaskEither<L, T>
Convert a nullable type T? to TaskEither using an async function:
toTaskOption() TaskOption<T>
Convert a nullable type T? to TaskOption: