arrow-fx / arrow.fx / IO / flatMap
open fun <B> flatMap(f: (A) ->
Transform the IO value of A by sequencing an effect IO that results in B.
f - function that returns the IO effect resulting in B based on the input A.
an effect that results in B.