Thanks for the explanation! So it's also equivalen...
# arrow
k
Thanks for the explanation! So it's also equivalent to:
Copy code
fun prepareAndSendMultiple(listMessages: List<Message>, connectionStringKey: String, queueKey: String): IO<Unit> =
         listMessages.parTraverse { message ->
            prepareAndSend(message, connectionStringKey, queueKey) // returns IO<Unit>
        }.unit()
?
arrow 1
s
Yes
k
Perfect. Indeed then there is no need to wrap it in an effect here. 🙂
s
You get
unit()
for free if you can implement
map
😉
k
That's very kind 😛
😂 1