Elixir with snippets

This commit is contained in:
Louis Pilfold 2016-09-29 20:36:20 +01:00
parent ca7b3e6e34
commit 4b28763d20

View File

@ -48,6 +48,21 @@ snippet fori
for ${1:item} <- ${2:items}, into: ${3} do
${0}
end
snippet wi
with(
${1:item} <- ${2:items}
) do
${0}
end
snippet wie
with(
${1:item} <- ${2:items}
) do
${3}
else
${4} ->
${0}
end
snippet df
def ${1:name}, do: ${2}
snippet def