mirror of
https://github.com/helix-editor/helix
synced 2026-07-29 11:50:02 +02:00
cd6a852c9e
This will be used by the cargo indent-check xtask to validate queries, similar to the existing indent tests in helix-core.
19 lines
251 B
Scala
19 lines
251 B
Scala
object Main {
|
|
def process(items: List[Int]): Int = {
|
|
var total = 0
|
|
for (v <- items) {
|
|
if (v > 0) {
|
|
total += v
|
|
} else {
|
|
total -= v
|
|
}
|
|
}
|
|
total
|
|
}
|
|
|
|
val config = Map(
|
|
"a" -> 1,
|
|
"b" -> 2,
|
|
)
|
|
}
|