Files
helix/tests/indent/r.r
Blaž Hrastnik cd6a852c9e Add indent corpus
This will be used by the cargo indent-check xtask to validate queries,
similar to the existing indent tests in helix-core.
2026-06-07 21:29:01 +09:00

16 lines
196 B
R

f <- function(x) {
total <- 0
for (v in x) {
if (v > 0) {
total <- total + v
} else {
total <- total - v
}
}
result <- lapply(
items,
process
)
total
}