Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
spark:recipes:writing-text-files [2014/11/04 14:40] straka |
spark:recipes:writing-text-files [2014/11/04 14:59] (current) straka |
||
---|---|---|---|
Line 39: | Line 39: | ||
===== Writing Text Files by Paragraphs | ===== Writing Text Files by Paragraphs | ||
+ | |||
+ | The '' | ||
+ | <file python> | ||
+ | lines.map(lambda line: str(line) + " | ||
+ | </ | ||
+ | <file scala> | ||
+ | lines.map(_.toString + " | ||
+ | </ | ||