<@U8VGMNEAZ> do you have a sample code with types ...
# arrow
r
@tginiotis do you have a sample code with types that illustrates the problem?
t
I can write one up. But now that I looked at arrows docs for Applicative, I see this example:
Copy code
Option.applicative().map(profileService(), phoneService(), addressService(), { (name, phone, addresses) ->
  Profile(name, phone, addresses)
})
This works for an Option, while I need a List. And instead of
profileService(), phoneService(), addressService()
these would be 3 distinct fold() functions, would be great to do in parallel, so as to not to traverse the list 3 times. I will look into writing some sample non-fp code
r
That works for all data types that support Applicative including list
Copy code
import arrow.instances.list.applicative.map

map(listOf(1), listOf("a"), listOf('b')) { ... }