raulraja
11/21/2018, 2:38 PMtginiotis
11/21/2018, 2:42 PMOption.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 coderaulraja
11/21/2018, 2:44 PMraulraja
11/21/2018, 2:46 PMimport arrow.instances.list.applicative.map
map(listOf(1), listOf("a"), listOf('b')) { ... }