Created
July 29, 2017 14:51
-
-
Save jfornoff/ab669bb7a743d02a94f5261046ad2895 to your computer and use it in GitHub Desktop.
Before and after exformat (Multiline Maps)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Maps do | |
def shortmap do | |
%{a: "b", c: "d"} | |
end | |
def longmap do | |
x = %{ | |
foo: "bar", | |
baz: "1", | |
bar: "bar", | |
quux: "bar", | |
banana: "bar", | |
apple: "bar", | |
ananas: "bar", | |
morestuff: "bar" | |
} | |
x | |
end | |
def bazonga do | |
%{ | |
foo: "bar", | |
baz: "1", | |
bar: "bar", | |
quux: "bar", | |
banana: "bar", | |
apple: "bar", | |
ananas: "bar", | |
morestuff: "bar", | |
katonka: "bar" | |
} | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Maps do | |
def shortmap do | |
%{a: "b", c: "d"} | |
end | |
def longmap do | |
x = %{ | |
foo: "bar", | |
baz: "1", | |
bar: "bar", | |
quux: "bar", | |
banana: "bar", | |
apple: "bar", | |
ananas: "bar", | |
morestuff: "bar", | |
} | |
x | |
end | |
def bazonga do | |
%{ foo: "bar", baz: "1", bar: "bar", quux: "bar", banana: "bar", apple: "bar", ananas: "bar", morestuff: "bar", katonka: "bar" } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment