Skip to content

Instantly share code, notes, and snippets.

@jfornoff
Created July 29, 2017 14:51
Show Gist options
  • Save jfornoff/ab669bb7a743d02a94f5261046ad2895 to your computer and use it in GitHub Desktop.
Save jfornoff/ab669bb7a743d02a94f5261046ad2895 to your computer and use it in GitHub Desktop.
Before and after exformat (Multiline Maps)
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
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