We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f960d0b commit c680ed7Copy full SHA for c680ed7
2021/Day1/Terraform/main.tf
@@ -0,0 +1,10 @@
1
+locals {
2
+ raw = file("../input.txt")
3
+ nums = split("\n", local.raw)
4
+ increments = [for i, num in local.nums: i > 0 ? local.nums[i] > local.nums[i - 1] ? 1 : 0 : 0]
5
+ counts = sum(local.increments)
6
+}
7
+
8
+output "result" {
9
+ value = local.counts
10
README.md
@@ -32,3 +32,9 @@ Node.js needs to be installed as a runtime.
32
```sh
33
sb run main.sb
34
```
35
36
+### Terraform
37
38
+```
39
+terraform plan
40
0 commit comments