Package fj.data
Interface IO<A>
- Type Parameters:
A
- the type of the result produced by the IO
- All Superinterfaces:
Try0<A,
IOException>
- All Known Subinterfaces:
SafeIO<A>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
IO monad for processing files
-
Method Summary
Modifier and TypeMethodDescriptiondefault <B> IO
<B> default <B> IO
<B> default A
f()
static IO
<LazyString> default <B> IO
<B> run()
default SafeIO
<Validation<IOException, A>> safe()
Methods inherited from interface fj.function.Try0
toEffect0, toF0, toP1, toTryEffect0
-
Method Details
-
run
- Throws:
IOException
-
f
- Specified by:
f
in interfaceTry0<A,
IOException> - Throws:
IOException
-
safe
-
map
-
bind
-
append
-
getContents
-
interact
-