aboutsummaryrefslogtreecommitdiff
path: root/2022/main.nim
diff options
context:
space:
mode:
Diffstat (limited to '2022/main.nim')
-rw-r--r--2022/main.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/2022/main.nim b/2022/main.nim
new file mode 100644
index 0000000..9960bf9
--- /dev/null
+++ b/2022/main.nim
@@ -0,0 +1,12 @@
+# Day ???: ???
+import std/[os, strutils, sequtils, sugar, enumerate]
+# import std/[algorithm, math, hashes, tables, sets]
+# import std/[strformat, strscans]
+
+# useful functions and things to remember:
+# - readFile, splitLines, split(""), strip({''})
+# - map(func), filter(func), all(func), any(func)
+# - foldl(func, init), string.repeat(count), zip(a, b)
+# for i, chr in "string": assert "string"[i] == chr
+
+let input: string = paramStr(1).readFile()