hho12/19/2018, 12:51 PM
is the type of the accumulator (and therefore also the return type).
Abdul Kadir12/19/2018, 1:12 PM
blogscot12/19/2018, 1:14 PM
the accumulator type is determined by the first element of the list being processed. I’ve linked an example: https://pl.kotl.in/HyrqmCweN
hho12/19/2018, 1:32 PM
as the type of the first argument in the lambda. This can be any supertype of the collections element type: https://pl.kotl.in/rk0XOTwx4
Abdul Kadir12/20/2018, 5:16 AM