Sven Bendel
1 min readNov 5, 2019

--

Hi Steliannirlu, that indeed is a viable alternative, however you have to add a type parameter when invoking the identity function to make it work:

.flatMapIterable(Function.identity<YourExpectedType>())

--

--

Sven Bendel
Sven Bendel

Written by Sven Bendel

Senior Android Engineer @Photoroom. Founder. Crowdfunding addict. Trying hard to do the right thing and failing more often than not. https://proven.lol/286e9b

Responses (1)