July 2018
Intermediate to advanced
242 pages
8h 6m
English
The generateRecipientsString() function uses the Iterable.joinToString() extension function from the standard library kotlin.collections package to generate the output string. The joinToString() function takes three parameters—the separator character, which is used to concatenate the next substrings, the prefix, and the suffix strings. It is invoked on a collection of String values. We are also applying the preprocessing operations that are responsible for removing the null values from the list of the Address objects and mapping the Address type to the String corresponding to the Address.emailAddress property.
Read now
Unlock full access