Scala: How to concatenate two multiline strings into a resulting multiline string
Briefly

The solution involves splitting multiline strings into lines, zipping both sequences, mapping to combine each pair of lines, and finally converting back to a multiline string.
First, split the multiline strings into individual lines, then zip them together, map to combine each pair, and join the result back into a multiline string to verify.
Read at Alvinalexander
[
|
]