1
1
Fork 0
AtomicKotlinCourse/Usability/Named & Default Arguments/Exercise 3/task.md

14 lines
445 B
Markdown
Raw Normal View History

2019-10-10 18:58:14 +03:00
## Named & Default Arguments (#3)
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
<div class="hint">
Use the extension function `lines()` to split a `String` into a list of
lines.
</div>