union() function merge two collections into one. It is in the infix form a union b. Order of the operands is important. In the resulting collection, the elements of the first operand comes before the second: val numbers = setOf("one hundred", "two...

Markdown supported · ⌘↵ to post
No responses yet.