From 90d9862a90e45d57d11477b6cf4f85f781c0c37e Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 23 Oct 2014 09:30:49 +0100 Subject: [PATCH] Scala for comprehension --- snippets/scala.snippets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/scala.snippets b/snippets/scala.snippets index 4e147a0..f824ee2 100644 --- a/snippets/scala.snippets +++ b/snippets/scala.snippets @@ -42,6 +42,11 @@ snippet fori for (${1:i} <- ${2:0} to ${3:obj}.length) { ${0} } +#for comprehension +snippet fory + for { + ${1:item} <- ${2:obj} + } yield ${0} #exceptions snippet try try {