From 9acfff5a6199d855fe857e9d5d3a70e93d23a28b Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 5 Apr 2015 11:40:05 +0100 Subject: [PATCH] Elixir for comprehension snippets --- snippets/elixir.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snippets/elixir.snippets b/snippets/elixir.snippets index 8fc710c..30ed557 100644 --- a/snippets/elixir.snippets +++ b/snippets/elixir.snippets @@ -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