diff options
Diffstat (limited to '.emacs.d/mysnippets/text-mode/scala-mode/for.multi')
| -rw-r--r-- | .emacs.d/mysnippets/text-mode/scala-mode/for.multi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/for.multi b/.emacs.d/mysnippets/text-mode/scala-mode/for.multi new file mode 100644 index 0000000..c512067 --- /dev/null +++ b/.emacs.d/mysnippets/text-mode/scala-mode/for.multi | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #Author : Jonas Bonèr <jonas@jonasboner.com> | ||
| 2 | #name : for {x <- xs \ y <- ys} { yield } | ||
| 3 | # -- | ||
| 4 | for { | ||
| 5 | ${1:x} <- ${2:xs} | ||
| 6 | ${3:x} <- ${4:xs} | ||
| 7 | } { | ||
| 8 | yield $0 | ||
| 9 | } \ No newline at end of file | ||
