mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 13:50:32 +01:00
Liberally use try, document idea
This commit is contained in:
@@ -8,7 +8,7 @@ module "is_valid" {
|
||||
|
||||
report = concat(
|
||||
count.index > 0 ? slice(var.report, 0, count.index) : [],
|
||||
count.index < length(var.report) - 1 ? slice(var.report, count.index + 1, length(var.report)) : []
|
||||
try(slice(var.report, count.index + 1, length(var.report)), [])
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user