The Twelve Days of Christmas: Difference between revisions
Content added Content deleted
(→{{header|Terraform}}: Add implementation.) |
m (→{{header|Terraform}}: simplify range use) |
||
Line 5,523: | Line 5,523: | ||
data "template_file" "days" { |
data "template_file" "days" { |
||
count = 12 |
count = 12 |
||
template = "On the ${local.days[count.index]} day of Christmas, my true love sent to me:\n${join("\n",[for g in range(count.index |
template = "On the ${local.days[count.index]} day of Christmas, my true love sent to me:\n${join("\n",[for g in range(count.index,-1,-1): local.gifts[g]])}" |
||
} |
} |
||