Join Slack
Powered by
yah, i had a similar requirement before to concat ...
# announcements
l
leodeng
12/06/2017, 7:54 PM
yah, i had a similar requirement before to concat
a: List<String?>
and
b: List<String?>
and remove null elements. at first i also used quite a few
?
, but the code was not quite readable. eventually i used
(a + b).filterNotNull()
5
Views
Open in Slack
Previous
Next