mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 12:50:32 +01:00
16 lines
214 B
HCL
16 lines
214 B
HCL
variable "part" {
|
|
type = number
|
|
}
|
|
|
|
variable "repetitions" {
|
|
type = number
|
|
}
|
|
|
|
locals {
|
|
repeated = [for _ in range(var.repetitions) : tostring(var.part)]
|
|
}
|
|
|
|
output "full" {
|
|
value = join("", local.repeated)
|
|
}
|