Logo

Programming-Idioms

History of Idiom 48 > diff from v10 to v11

Edit summary for version 11 by :

Version 10

2015-09-03, 16:46:06

Version 11

2015-09-03, 21:14:14

Idiom #48 Multi-line string litteral

Assign to variable s a string litteral consisting in several lines of text

Idiom #48 Multi-line string litteral

Assign to variable s a string litteral consisting in several lines of text

Code
s = "Spanning
string
works"

# you can also use heredocs

s = """
multiline
heredoc
"""
Comments bubble
triple-quotes starts a heredoc.
Demo URL
http://elixirplayground.com?gist=1dd0cf297f10e2b189ae