2019-10-10 18:58:14 +03:00
|
|
|
## Named & Default Arguments (#3)
|
2019-10-10 18:10:21 +03:00
|
|
|
|
2019-10-11 14:44:13 +03:00
|
|
|
Implement a `joinComments()` function which takes a `String` parameter
|
|
|
|
containing comment text. `joinComments()` joins the lines of the comment text,
|
|
|
|
removing newlines and using a default of `;` as the line separator. It removes
|
|
|
|
the comment slashes along with any whitespace after the slashes (`// `).
|
2019-10-10 18:58:14 +03:00
|
|
|
|
2020-10-11 19:39:02 +03:00
|
|
|
<div class="hint">
|
|
|
|
|
2020-10-23 19:55:16 +03:00
|
|
|
Use the extension function `lines()` to split a `String` into a list of
|
|
|
|
lines.
|
2020-10-11 19:39:02 +03:00
|
|
|
|
|
|
|
</div>
|