aoc

ref: master

2020/template.clj


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(ns aoc.dayxx
  (:require [clojure.java.io :as io]))

(defn read-input []
  (->>
   (io/resource "inputxx.txt")
   io/reader
   line-seq

       ;; example
       ;; clojure.string/split-lines
   ))

(defn compute-1 [input]
  input)

(defn compute-2 [input]
  input)

(defn main []
  (let [input (read-input)]
    (println (compute-1 input))
    (println (compute-2 input))))

(main)