Class IO.FlatMapped<T,R>

java.lang.Object
com.github.tonivade.purefun.monad.IO.FlatMapped<T,R>
All Implemented Interfaces:
Applicable<IO<?>,R>, Bindable<IO<?>,R>, Effect<IO<?>,R>, Mappable<IO<?>,R>, Recoverable, Kind<IO<?>,R>, IO<R>, IOOf<R>
Enclosing interface:
IO<T>

public static final class IO.FlatMapped<T,R> extends Object implements IO<R>
  • Field Details

    • current

      private final Kind<IO<?>,? extends T> current
    • next

      private final Function1<? super T,? extends Kind<IO<?>,? extends R>> next
  • Constructor Details

    • FlatMapped

      private FlatMapped(IO<? extends T> current, Function1<? super T,? extends Kind<IO<?>,? extends R>> next)
  • Method Details