Scala for comprehension
This commit is contained in:
parent
d4cb189306
commit
90d9862a90
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user