You can also do the same with a custom function an...
# arrow
s
You can also do the same with a custom function and traverse.
Copy code
val userIds: List<Int> = listOf(1, 2, 3)
val users: IO<ListK<User>> = userIds.k().traverse(IO.applicative()) { id -> IO { getUser(id) } }