Debian Codegraph @

tests/indent/scala.scala

raw
1 object Main {
2 def process(items: List[Int]): Int = {
3 var total = 0
4 for (v <- items) {
5 if (v > 0) {
6 total += v
7 } else {
8 total -= v
9 }
10 }
11 total
12 }
13
14 val config = Map(
15 "a" -> 1,
16 "b" -> 2,
17 )
18 }