Elixir for comprehension snippets

This commit is contained in:
Louis Pilfold 2015-04-05 11:40:05 +01:00
parent 061f32a08a
commit 9acfff5a61

View File

@ -40,6 +40,14 @@ snippet case
${2} ->
${0}
end
snippet for
for ${1:item} <- ${2:items} do
${0}
end
snippet fori
for ${1:item} <- ${2:items}, into: ${3} do
${0}
end
snippet df
def ${1:name}, do: ${2}
snippet def