@<?> fun joined(@NotNull separator: java.lang.String): NonExistentClass
@NotNull fun joined(@IntRange(1) @<?> numberOfLines: int): java.util.List<java.lang.String>
Joins a list of words into the given number of strings with a space between each word.
E.g. ["this", "is", "a", "simple", "example"]
with numberOfLines
set to 2
returns
["this is a", "simple example"]
.
numberOfLines
- : The number of strings to return must be at minimum 1
Return
: The words joined to strings.