mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Rely more on type coercion
This commit is contained in:
@@ -3,7 +3,7 @@ variable "input" {
|
||||
}
|
||||
|
||||
locals {
|
||||
reports = [for line in split("\n", trim(var.input, "\n")) : [for num in split(" ", line) : parseint(num, 10)]]
|
||||
reports = [for line in split("\n", trim(var.input, "\n")) : split(" ", line)]
|
||||
}
|
||||
|
||||
module "part1_valid" {
|
||||
|
||||
Reference in New Issue
Block a user