Scala for comprehension

This commit is contained in:
Louis Pilfold 2014-10-23 09:30:49 +01:00
parent d4cb189306
commit 90d9862a90

View File

@ -42,6 +42,11 @@ snippet fori
for (${1:i} <- ${2:0} to ${3:obj}.length) { for (${1:i} <- ${2:0} to ${3:obj}.length) {
${0} ${0}
} }
#for comprehension
snippet fory
for {
${1:item} <- ${2:obj}
} yield ${0}
#exceptions #exceptions
snippet try snippet try
try { try {